mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fix various typos (#272)
* Fix various typos Found via `codespell -q 3 -S ./3rdparty -L ba,nin,numer,ro` * Fix source typo in tests/crt_test.cpp
This commit is contained in:
@@ -23,14 +23,14 @@ TEST_CASE("memSet", "")
|
||||
|
||||
TEST_CASE("memMove", "")
|
||||
{
|
||||
const char* orignal = "xxxxabvgd";
|
||||
const char* original = "xxxxabvgd";
|
||||
char str[] = { 'x', 'x', 'x', 'x', 'a', 'b', 'v', 'g', 'd' };
|
||||
|
||||
bx::memMove(&str[4], &str[4], 0);
|
||||
REQUIRE(0 == bx::memCmp(str, orignal, 9) );
|
||||
REQUIRE(0 == bx::memCmp(str, original, 9) );
|
||||
|
||||
bx::memMove(&str[4], &str[4], 5);
|
||||
REQUIRE(0 == bx::memCmp(str, orignal, 9) );
|
||||
REQUIRE(0 == bx::memCmp(str, original, 9) );
|
||||
|
||||
bx::memMove(str, &str[4], 5);
|
||||
REQUIRE(0 == bx::memCmp(str, "abvgd", 5) );
|
||||
@@ -39,7 +39,7 @@ TEST_CASE("memMove", "")
|
||||
REQUIRE(str[4] == 'a' );
|
||||
|
||||
bx::memSet(str, 'x', 4);
|
||||
REQUIRE(0 == bx::memCmp(str, orignal, 9) );
|
||||
REQUIRE(0 == bx::memCmp(str, original, 9) );
|
||||
}
|
||||
|
||||
TEST_CASE("scatter/gather", "")
|
||||
|
||||
Reference in New Issue
Block a user