mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
network-functions.pl: Fix return code check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -691,7 +691,7 @@ sub testsuite() {
|
||||
assert('find_next_ip_address("1.2.3.4", 2)', $result eq "1.2.3.6");
|
||||
|
||||
$result = &network_equal("192.168.0.0/24", "192.168.0.0/255.255.255.0");
|
||||
assert('network_equal("192.168.0.0/24", "192.168.0.0/255.255.255.0")', $result);
|
||||
assert('network_equal("192.168.0.0/24", "192.168.0.0/255.255.255.0")', !$result);
|
||||
|
||||
$result = &network_equal("192.168.0.0/24", "192.168.0.0/25");
|
||||
assert('network_equal("192.168.0.0/24", "192.168.0.0/25")', !$result);
|
||||
|
||||
Reference in New Issue
Block a user