Comparison

tests/test_util_ip.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5607:eee23fb79a5e
comparison
equal deleted inserted replaced
5775:a6c2b8933507 5776:bd0ff8ae98a8
29 assert_equal(match(_"8.8.4.4", _"8.8.0.0", 16), true); 29 assert_equal(match(_"8.8.4.4", _"8.8.0.0", 16), true);
30 end 30 end
31 31
32 function parse_cidr(parse_cidr, _M) 32 function parse_cidr(parse_cidr, _M)
33 local new_ip = _M.new_ip; 33 local new_ip = _M.new_ip;
34 34
35 assert_equal(new_ip"0.0.0.0", new_ip"0.0.0.0") 35 assert_equal(new_ip"0.0.0.0", new_ip"0.0.0.0")
36 36
37 local function assert_cidr(cidr, ip, bits) 37 local function assert_cidr(cidr, ip, bits)
38 local parsed_ip, parsed_bits = parse_cidr(cidr); 38 local parsed_ip, parsed_bits = parse_cidr(cidr);
39 assert_equal(new_ip(ip), parsed_ip, cidr.." parsed ip is "..ip); 39 assert_equal(new_ip(ip), parsed_ip, cidr.." parsed ip is "..ip);
40 assert_equal(bits, parsed_bits, cidr.." parsed bits is "..tostring(bits)); 40 assert_equal(bits, parsed_bits, cidr.." parsed bits is "..tostring(bits));
41 end 41 end