9 #ifndef _CODEDSTR_TEST_H_
10 #define _CODEDSTR_TEST_H_
15 #include <cxxtest/TestSuite.h>
29 Str str(
" code=0026 name=\"DVL_micro\"\n" );
33 TS_ASSERT( NULL != codedStr );
34 if( NULL != codedStr )
36 TS_ASSERT_EQUALS( codedStr->
getCode(), 0x0026 );
37 TS_ASSERT_SAME_DATA( codedStr->
cStr(),
"DVL_micro", 10 );
44 #endif // _CODEDSTR_TEST_H
Units tests for class CodedStr
Definition: CodedStr_Test.h:22
Extends the Str class, adding an unsigned short code (actually, the codes are limited to 14 bits...
Definition: CodedStr.h:23
Wraps a Str with an IOStream class.
Definition: StrIOStream.h:24
Replacement for standard template class string.
Definition: Str.h:12
void testRead(void)
CodedStr::Read Unit Test.
Definition: CodedStr_Test.h:27
const char * cStr() const
Definition: Str.h:188
Contains the CodedStr class declaration.
static CodedStr * Read(InStream &inStream)
Definition: CodedStr.cpp:39
unsigned short getCode() const
Definition: CodedStr.h:31