X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tests%2Ftest_util_ip.lua;h=0ded1123227ed1c287f6d443c4f00ed62f92e934;hb=442f0f4cf10aa1d2b7676ed99de31738a2c1d488;hp=410f1da24ed43fb6198cf4841ff21f58e9084f17;hpb=454a3cd294ebd25dd18a38785a0040ab8f4b77fd;p=prosody.git diff --git a/tests/test_util_ip.lua b/tests/test_util_ip.lua index 410f1da2..0ded1123 100644 --- a/tests/test_util_ip.lua +++ b/tests/test_util_ip.lua @@ -31,9 +31,9 @@ end function parse_cidr(parse_cidr, _M) local new_ip = _M.new_ip; - + assert_equal(new_ip"0.0.0.0", new_ip"0.0.0.0") - + local function assert_cidr(cidr, ip, bits) local parsed_ip, parsed_bits = parse_cidr(cidr); assert_equal(new_ip(ip), parsed_ip, cidr.." parsed ip is "..ip);