lengthLongName = strlen(longName);
}
while (! found && m_properties.next(position, &name, &properties)){
+ const char* ptr = properties.str();
+ printf("%s\n", ptr);
list.split(properties.str(), '\1');
- if (longName == NULL && shortName == list.strOf(IxShort)[0])
+ if (longName == NULL && list.count() > IxShort && shortName == list.strOf(IxShort)[0])
found = true;
- else if (lengthLongName > 0 && list.sizeOf(IxLong) == lengthLongName + 1
+ else if (lengthLongName > 0 && list.count() > IxLong && list.sizeOf(IxLong) == lengthLongName + 1
&& strncmp(longName, list.strOf(IxLong), lengthLongName) == 0)
found = true;
}
#endif
void testBase(){
- extern void testReHashList(void);
- testReHashList();
+ extern void testReLogger(void);
+ testReLogger();
+ testReLogger();
extern void testReTestUnit();
- // testReTestUnit();
+ testReTestUnit();
extern void testReByteBuffer();
testReByteBuffer();
extern void testReSeqArray(void);
void testAll(){
try
{
+ testOs();
testBase();
testString();
- testOs();
} catch (ReException e){
fprintf(stderr, "testBase.cpp: unexpected exception: %s\n", e.getMessage());
}