test: added test for utility trim
This commit is contained in:
@@ -36,6 +36,7 @@ add_files(
|
||||
TextAccessTestSuite.h
|
||||
UtilityMavenTestSuite.h
|
||||
UtilityStringTestSuite.h
|
||||
UtilityTestSuite.h
|
||||
Vector2TestSuite.h
|
||||
|
||||
# Java tests need to be executed last because of some linux related issues.
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#include "cxxtest/TestSuite.h"
|
||||
|
||||
#include "utility/utility.h"
|
||||
|
||||
class UtilityTestSuite : public CxxTest::TestSuite
|
||||
{
|
||||
public:
|
||||
void test_trim_blank_spaces_of_string()
|
||||
{
|
||||
TS_ASSERT_EQUALS(utility::trim(" foo "), "foo");
|
||||
}
|
||||
|
||||
void test_trim_blank_spaces_of_wstring()
|
||||
{
|
||||
TS_ASSERT_EQUALS(utility::trim(L" foo "), L"foo");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user