From 3ba023064a1d03cb76bd6b2785e8281d2854b0e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 27 Sep 2004 13:33:25 +0000 Subject: [PATCH] * wrong test corrected :-) --- org.glite.lb.common/test/il_string_test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 1.8.2.3