16 lines
308 B
C++
16 lines
308 B
C++
|
#include "StringUtils.h"
|
||
|
|
||
|
#include "TestFramework.h"
|
||
|
#include "TestUtils.h"
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
TEST_CASE(TestStringUtils_Strip, "core")
|
||
|
{
|
||
|
std::string input = " super() ";
|
||
|
std::string stripped = StringUtils::strip(input);
|
||
|
|
||
|
auto predicate = stripped == "super()";
|
||
|
REQUIRE(predicate);
|
||
|
}
|