Module: sems
Branch: 1.5
Commit: 67ed5a1a17c4dd1e08e76fd9d02fac419e68fd80
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=67ed5a1a17c4dd1e08e76fd9d02fac419e68fd80

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Aug  7 15:02:20 2012 +0200

tests: added another get_header_keyvalue test

---

 core/tests/test_headers.cpp   |    1 +
 core/tests/test_uriparser.cpp |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/tests/test_headers.cpp b/core/tests/test_headers.cpp
index 51aab81..24bfe9e 100644
--- a/core/tests/test_headers.cpp
+++ b/core/tests/test_headers.cpp
@@ -46,6 +46,7 @@ FCTMF_SUITE_BGN(test_headers) {
       fct_chk(get_header_keyvalue(getHeader("P-App-Param: 
product_id=1;productid=1;bla=blub ", "P-App-Param"), "product_id") == "1");
       fct_chk(get_header_keyvalue(getHeader("P-App-Param: 
product_id=11;productid=1;bla=blub ", "P-App-Param"), "product_id") == "11");
       fct_chk(get_header_keyvalue(getHeader("P-App-Param: ;u=user;d=domain", 
"P-App-Param"), "u") == "user");
+      fct_chk(get_header_keyvalue(getHeader("P-App-Param: ;u=user", 
"P-App-Param"), "u") == "user");
 
 
       fct_chk(get_header_keyvalue(getHeader("P-My-Test: mykey=myval; 
myotherfunkykey=myval;andsomemore", "P-My-Test", true), "mykey") == "myval" );
diff --git a/core/tests/test_uriparser.cpp b/core/tests/test_uriparser.cpp
index 885727d..c29d1b8 100644
--- a/core/tests/test_uriparser.cpp
+++ b/core/tests/test_uriparser.cpp
@@ -56,7 +56,7 @@ FCTMF_SUITE_BGN(test_uriparser) {
       AmUriParser p;
       size_t end;
       fct_chk( p.parse_contact("hu <sip:u@d;tag=123>", 0, end) );
-      DBG("DN:: '%s'\n", p.display_name.c_str());
+      // DBG("DN:: '%s'\n", p.display_name.c_str());
       fct_chk( p.display_name=="hu");
       fct_chk( p.uri_user=="u");
       fct_chk( p.uri_host=="d");
@@ -66,7 +66,7 @@ FCTMF_SUITE_BGN(test_uriparser) {
       AmUriParser p;
       size_t end;
       fct_chk( p.parse_contact("  hu bar <sip:u@d;tag=123>", 0, end) );
-      DBG("DN:: '%s'\n", p.display_name.c_str());
+      // DBG("DN:: '%s'\n", p.display_name.c_str());
 
       fct_chk( p.display_name=="hu bar");
       fct_chk( p.uri_user=="u");

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to