Skip to content

Commit d499bf7

Browse files
committed
Testing a trim function found online
1 parent 29db8bd commit d499bf7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_utils.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ end";
7474
}
7575
}
7676
}
77+
78+
TEST_CASE("Test the string trim feature", "[string]") {
79+
std::string s = " there might be some white space.... ";
80+
81+
REQUIRE(String::trim(s) == "there might be some white space....");
82+
}
83+

0 commit comments

Comments
 (0)