diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-03-22 10:45:07 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-03-22 10:45:07 +0100 |
commit | 79b74bdf64e55f407b448fda267589f793ddc19e (patch) | |
tree | cd4b2686d6294374c9b889aa8a860cfb7ea1e647 /tests/unittests | |
parent | 633d6532beb8cb8bd4f44732177499d4023fe624 (diff) | |
download | libssh-79b74bdf64e55f407b448fda267589f793ddc19e.tar.gz libssh-79b74bdf64e55f407b448fda267589f793ddc19e.tar.xz libssh-79b74bdf64e55f407b448fda267589f793ddc19e.zip |
Added a IP address test
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_isipaddr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/torture_isipaddr.c b/tests/unittests/torture_isipaddr.c index eacc06e..c2a1e07 100644 --- a/tests/unittests/torture_isipaddr.c +++ b/tests/unittests/torture_isipaddr.c @@ -35,6 +35,7 @@ static void torture_ssh_is_ipaddr(void **state) { assert_int_equal(ssh_is_ipaddr("0.0.0."),0); assert_int_equal(ssh_is_ipaddr("0.0"),0); assert_int_equal(ssh_is_ipaddr("0"),0); + assert_int_equal(ssh_is_ipaddr("255.255.255"),0); assert_int_equal(ssh_is_ipaddr("2001:0db8:85a3:0000:0000:8a2e:0370:7334:1002"), 0); assert_int_equal(ssh_is_ipaddr("fe80:x:202:b3ff:fe1e:8329"), 0); |