← Back to team overview

nrtb-core team mailing list archive

[Branch ~fpstovall/nrtb/cpp_common] Rev 33: Completed the unit test routine for common_rl. All methods are tested and any faults will stop th...

 

------------------------------------------------------------
revno: 33
committer: fpstovall@xxxxxxxxx
branch nick: dev
timestamp: Thu 2011-07-21 18:14:53 -0400
message:
  Completed the unit test routine for common_rl. All methods are tested and any faults will stop the build properly.
modified:
  common/common_rl/common_rl_test.cpp


--
lp:~fpstovall/nrtb/cpp_common
https://code.launchpad.net/~fpstovall/nrtb/cpp_common

Your team NRTB Core is subscribed to branch lp:~fpstovall/nrtb/cpp_common.
To unsubscribe from this branch go to https://code.launchpad.net/~fpstovall/nrtb/cpp_common/+edit-subscription
=== modified file 'common/common_rl/common_rl_test.cpp'
--- common/common_rl/common_rl_test.cpp	2011-07-21 10:37:06 +0000
+++ common/common_rl/common_rl_test.cpp	2011-07-21 22:14:53 +0000
@@ -72,7 +72,30 @@
 	  "nrtb::mconvert()",
 	  nrtb::mconvert("\\ \" '"+tchar) == "\\\\ \\\" \\\'\\0");
 
-
+  returnme += report_test(
+	  "nrtb::trim()",
+	  nrtb::trim("\t"+tstr+"   ") == tstr);
+
+  returnme += report_test(
+	  "nrtb::dateflip()",
+	  nrtb::dateflip("2011-07-21") == "07-21-2011");
+
+  returnme += report_test(
+	  "nrtb::http_hextochar()",
+	  nrtb::http_hextochar("20") == " ");
+  
+  returnme += report_test(
+	  "nrtb::http_chartohex()",
+	  nrtb::http_chartohex(tstr) == "4D6958654463417345");
+  
+  returnme += report_test(
+	  "nrtb::http_enhex()",
+	  nrtb::http_enhex(tstr) == "%4D%69%58%65%44%63%41%73%45");
+  
+  returnme += report_test(
+	  "nrtb::http_unhex()",
+	  nrtb::http_unhex("%4D%69%58%65%44%63%41%73%45") == tstr);
+  
   cout << "=== nrtb::common_rl unit test complete ===" << endl;
   return returnme;
 };
\ No newline at end of file