From 386d050b75d88a1aebb81adc51ce86d1a6b39425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 12 Nov 2017 19:56:03 -0800 Subject: [PATCH] Cleanup. --- tests/string_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 4c4b86e..653b494 100644 --- a/tests/string_test.cpp +++ b/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") ); }