From: Michal Voců Date: Thu, 10 Feb 2005 18:16:15 +0000 (+0000) Subject: * one more X-Git-Tag: gridsite-core_R_1_1_5~20 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ddb4f209b5092c19d497080d00ce989aa63a6dcd;p=jra1mw.git * one more --- diff --git a/org.glite.lb.common/test/il_msg_test.cpp b/org.glite.lb.common/test/il_msg_test.cpp index c8452f4..6748bdb 100644 --- a/org.glite.lb.common/test/il_msg_test.cpp +++ b/org.glite.lb.common/test/il_msg_test.cpp @@ -45,6 +45,9 @@ public: } void testEncodeReply() { + CPPUNIT_ASSERT_EQUAL(len_rep, 31); + CPPUNIT_ASSERT(buffer_rep != NULL); + CPPUNIT_ASSERT(!strncmp(buffer_rep, rep, len_rep)); } void testDecodeReply() { @@ -85,7 +88,7 @@ private: }; const char *IlMsgTest::msg = " 9\n6 zprava\n"; -const char *IlMsgTest::rep = ""; +const char *IlMsgTest::rep = " 14\n10\n20\n5 chyba\n"; int IlMsgTest::pos; CPPUNIT_TEST_SUITE_REGISTRATION( IlMsgTest );