This commit is contained in:
Branimir Karadžić
2017-11-13 09:23:48 -08:00
parent d5c091eb92
commit 03a6f9d6f2
3 changed files with 14 additions and 8 deletions

View File

@@ -4,12 +4,11 @@
*/
#include "test.h"
#include <bx/filepath.h>
#include <bx/string.h>
#include <bx/handlealloc.h>
#include <bx/sort.h>
#include <string.h>
bx::AllocatorI* g_allocator;
TEST_CASE("chars", "")
@@ -72,6 +71,11 @@ TEST_CASE("strCat", "")
REQUIRE(0 == bx::strCmp(dst, "copycat-cat") );
}
TEST_CASE("strCmp", "")
{
REQUIRE(0 != bx::strCmp("meh", "meh/") );
}
TEST_CASE("strCmpI", "")
{
REQUIRE(0 == bx::strCmpI("test", "test") );
@@ -381,4 +385,7 @@ TEST_CASE("Trim", "")
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") );
bx::FilePath uri("/555333/podmac/");
REQUIRE(0 == bx::strCmp(bx::strTrim(uri.getPath(), "/"), "555333/podmac") );
}