mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed issue #222.
This commit is contained in:
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user