feat(string): add SStrLen

This commit is contained in:
fallenoak 2020-11-15 12:57:32 -06:00
parent 7aa414f95a
commit d3f3c10aa5
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 18 additions and 0 deletions

View file

@ -54,3 +54,10 @@ TEST_CASE("SStrHashHT", "[string]") {
REQUIRE(hashForwardSlash == hashBackSlash);
}
}
TEST_CASE("SStrLen", "[string]") {
SECTION("calculates string length correctly") {
auto length = SStrLen("foo");
REQUIRE(length == 3);
}
}