Fixed issue #222.

This commit is contained in:
Бранимир Караџић
2019-11-24 19:27:13 -08:00
parent 822b66d91f
commit 1680ef418a
2 changed files with 14 additions and 11 deletions

View File

@@ -226,6 +226,18 @@ TEST_CASE("strFind", "")
REQUIRE(bx::strFind("vgd", 'a').isEmpty() );
}
{
bx::StringView test = bx::strFind("a", "a");
REQUIRE(test.getLength() == 1);
REQUIRE(*test.getPtr() == 'a');
}
{
bx::StringView test = bx::strFind("a", bx::StringView("a ", 1) );
REQUIRE(test.getLength() == 1);
REQUIRE(*test.getPtr() == 'a');
}
}
TEST_CASE("strSkip", "")