Commit 3f9fe07e authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed compile bug in bnf test unit tests.

darcs-hash:20060615172751-7659e-9c6ada84e7606288537859321fcb11fb2b07ac7c.gz
parent 466a9d49
......@@ -289,17 +289,17 @@ int host_test(void)
TEST(span_domain("a.b.-"), 0);
TEST(span_domain("a.b-"), 0);
TEST(host_is_localhost("126.0.0.0"), 0);
TEST(host_is_localhost("127.0.0.0"), 1);
TEST(host_is_localhost("0.0.0.0"), 0);
TEST(host_is_localhost("::1"), 1);
TEST(host_is_localhost("::1"), 1);
TEST(host_is_localhost("::1:3fff"), 0);
TEST(host_is_localhost("[::1]"), 1);
TEST(host_is_localhost("localdomain.domain.org"), 0);
TEST(host_is_localhost("localhost.domain.org"), 0);
TEST(host_is_localhost("localhost"), 1);
TEST(host_is_localhost("localhost.localdomain"), 1);
TEST(host_is_local("126.0.0.0"), 0);
TEST(host_is_local("127.0.0.0"), 1);
TEST(host_is_local("0.0.0.0"), 0);
TEST(host_is_local("::1"), 1);
TEST(host_is_local("::1"), 1);
TEST(host_is_local("::1:3fff"), 0);
TEST(host_is_local("[::1]"), 1);
TEST(host_is_local("localdomain.domain.org"), 0);
TEST(host_is_local("localhost.domain.org"), 0);
TEST(host_is_local("localhost"), 1);
TEST(host_is_local("localhost.localdomain"), 1);
TEST(host_has_domain_invalid("invalid"), 1);
TEST(host_has_domain_invalid("invalid."), 1);
......
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