Commit f6e36d76 authored by Pekka Pessi's avatar Pekka Pessi

torture_bnf.c: added some host_is_domain() cases

darcs-hash:20090113210325-db55f-af3aaab904c5cf499409878684958597430624cb.gz
parent ead148f0
......@@ -320,6 +320,11 @@ int host_test(void)
TEST(host_has_domain_invalid("valid."), 0);
TEST(host_has_domain_invalid("1-.invalid."), 0);
TEST(host_is_domain("127.0.0.1"), 0);
TEST(host_is_domain("3.com"), 1);
TEST(host_is_domain("127.0.0.com"), 1);
TEST(host_is_domain("actra.0.1"), 0);
/* Invalid IP4 address (extra leading zeros) */
TEST_1(!host_cmp("127.0.0.1", "127.0.0.01"));
/* Invalid reference (extra leading zeros) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment