tests: Some much-needed cleanup...
[prosody.git] / tests / test_util_ip.lua
1
2 function test_match(match_ip) 
3         assert(match_ip("10.20.30.40", "10.0.0.0/8"));
4         assert(match_ip("80.244.94.84", "80.244.94.84"));
5         assert(match_ip("8.8.8.8", "8.8.0.0/16"));
6         assert(match_ip("8.8.4.4", "8.8.0.0/16"));
7 end