Software /
code /
prosody
Diff
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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_util_ip.lua Sat May 18 17:14:30 2013 +0100 @@ -0,0 +1,7 @@ + +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