[Freeswitch-svn] [commit] r11814 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/bnf
FreeSWITCH SVN
mikej at freeswitch.org
Wed Feb 11 08:55:27 PST 2009
Author: mikej
Date: Wed Feb 11 10:55:27 2009
New Revision: 11814
Log:
Tue Jan 13 15:03:25 CST 2009 Pekka Pessi <first.last at nokia.com>
* torture_bnf.c: added some host_is_domain() cases
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/bnf/torture_bnf.c
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/bnf/torture_bnf.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/bnf/torture_bnf.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/bnf/torture_bnf.c Wed Feb 11 10:55:27 2009
@@ -320,6 +320,11 @@
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) */
More information about the Freeswitch-svn
mailing list