File

tests/test_util_ip.lua @ 5604:6df0ec991f2e

tests: Some much-needed cleanup...
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 May 2013 17:14:30 +0100
child 5606:3dc141acf381
line wrap: on
line source


function test_match(match_ip) 
	assert(match_ip("10.20.30.40", "10.0.0.0/8"));
	assert(match_ip("80.244.94.84", "80.244.94.84"));
	assert(match_ip("8.8.8.8", "8.8.0.0/16"));
	assert(match_ip("8.8.4.4", "8.8.0.0/16"));
end