mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added STL string to bx::StringView conversion.
This commit is contained in:
@@ -8,9 +8,17 @@
|
||||
#include <bx/string.h>
|
||||
#include <bx/handlealloc.h>
|
||||
#include <bx/sort.h>
|
||||
#include <string>
|
||||
|
||||
bx::AllocatorI* g_allocator;
|
||||
|
||||
TEST_CASE("stringPrintfTy", "")
|
||||
{
|
||||
std::string test;
|
||||
bx::stringPrintf(test, "printf into std::string.");
|
||||
REQUIRE(0 == bx::strCmp(bx::StringView(test), "printf into std::string.") );
|
||||
}
|
||||
|
||||
TEST_CASE("chars", "")
|
||||
{
|
||||
for (char ch = 'A'; ch <= 'Z'; ++ch)
|
||||
|
||||
Reference in New Issue
Block a user