Module:IP/testcases
Appearance
![]() | This is the test cases page for the module Module:IP. Results of the test cases. |
-- Unit tests for [[Module:IP]]. Click talk page to run tests.
-- Unit test module setup
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
-- Target module setup
local IP = require('Module:IP')
local IPAddress = IP.IPAddress
local IPRange = IP.IPRange
function suite:testGetIP()
local obj = IPAddress.new('1.2.3.4')
self:assertEquals('1.2.3.4', obj:getIP())
end
return suite