random ai stuff
This commit is contained in:
16
telldus-core/tests/common/StringsTest.cpp
Normal file
16
telldus-core/tests/common/StringsTest.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "StringsTest.h"
|
||||
#include "Strings.h"
|
||||
|
||||
void StringsTest :: setUp (void)
|
||||
{
|
||||
}
|
||||
|
||||
void StringsTest :: tearDown (void)
|
||||
{
|
||||
}
|
||||
|
||||
void StringsTest :: formatfTest (void) {
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("42"), TelldusCore::formatf("%u", 42));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("2A"), TelldusCore::formatf("%X", 42));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("42"), TelldusCore::formatf("%s", "42"));
|
||||
}
|
||||
Reference in New Issue
Block a user