* added specific test for \0 at the end of buffer
authorMichal Voců <michal@ruk.cuni.cz>
Thu, 9 Sep 2004 09:36:34 +0000 (09:36 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Thu, 9 Sep 2004 09:36:34 +0000 (09:36 +0000)
org.glite.lb.common/test/il_string_test.cpp

index 5f1ecc3..12a11f3 100644 (file)
@@ -23,6 +23,7 @@ public:
        void testPutString() {
                put_string(buffer, "ahoj");
                CPPUNIT_ASSERT( !strncmp(buffer,"4 ahoj\n",7) );
+               CPPUNIT_ASSERT(buffer[7] == 0);
        }
 
        void testGetString() {