Branimir Karadžić 8 years ago
parent
commit
386d050b75
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/string_test.cpp

+ 3 - 0
tests/string_test.cpp

@@ -378,4 +378,7 @@ TEST_CASE("Trim", "")
 	REQUIRE(0 == bx::strCmp(bx::strTrim("abvgd", "da"), "bvg") );
 	REQUIRE(0 == bx::strCmp(bx::strTrim("<1389>", "<>"), "1389") );
 	REQUIRE(0 == bx::strCmp(bx::strTrim("/555333/podmac/", "/"), "555333/podmac") );
+
+	REQUIRE(0 == bx::strCmp(bx::strTrim("abvgd", ""), "abvgd") );
+	REQUIRE(0 == bx::strCmp(bx::strTrim(" \t a b\tv g d \t ", " \t"), "a b\tv g d") );
 }