stuff-from-scratch/test/core/TestStringUtils.cpp

16 lines
308 B
C++
Raw Normal View History

2022-12-05 17:50:49 +00:00
#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);
}