From: Michal Voců Date: Mon, 27 Sep 2004 13:33:25 +0000 (+0000) Subject: * wrong test corrected :-) X-Git-Tag: glite-lb-common_R_0_2_0~200 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3ba023064a1d03cb76bd6b2785e8281d2854b0e4;p=jra1mw.git * wrong test corrected :-) --- diff --git a/org.glite.lb.common/test/il_string_test.cpp b/org.glite.lb.common/test/il_string_test.cpp index 12a11f3..2f03a94 100644 --- a/org.glite.lb.common/test/il_string_test.cpp +++ b/org.glite.lb.common/test/il_string_test.cpp @@ -1,6 +1,5 @@ #include - extern "C" { #include "il_string.h" } @@ -23,7 +22,6 @@ public: void testPutString() { put_string(buffer, "ahoj"); CPPUNIT_ASSERT( !strncmp(buffer,"4 ahoj\n",7) ); - CPPUNIT_ASSERT(buffer[7] == 0); } void testGetString() { @@ -31,6 +29,7 @@ public: get_string("4 ahoj\n", &s); CPPUNIT_ASSERT( s != NULL ); CPPUNIT_ASSERT( !strcmp(s, "ahoj") ); + CPPUNIT_ASSERT( s[4] == 0 ); free(s); }