Mercurial > prosody-hg
comparison 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 |
| parents | |
| children | 3dc141acf381 |
comparison
equal
deleted
inserted
replaced
| 5603:e07f4f02e4f9 | 5604:6df0ec991f2e |
|---|---|
| 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 |
