git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbc520
)
* wrong test corrected :-)
author
Michal Voců
<michal@ruk.cuni.cz>
Mon, 27 Sep 2004 13:33:25 +0000
(13:33 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Mon, 27 Sep 2004 13:33:25 +0000
(13:33 +0000)
org.glite.lb.common/test/il_string_test.cpp
patch
|
blob
|
blame
|
history
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
(file)
--- 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 <cppunit/extensions/HelperMacros.h>
-
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);
}