-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Change] Sync
test/archlinux/aur_poc/
with test/
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Test cases are organized according to ZOMBIES rules | ||
http://blog.wingman-sw.com/tdd-guided-by-zombies | ||
*/ | ||
#include <bux/LexBase.h> // bux::asciiLiteral() | ||
//#include <bux/UnicodeCvt.h> // bux::BOM() | ||
#include <catch2/catch_test_macros.hpp> | ||
|
||
TEST_CASE("Regression errors", "[S]") | ||
{ | ||
CHECK(bux::asciiLiteral("::") == "::"); | ||
CHECK(bux::asciiLiteral("::=") == "::="); | ||
} | ||
|
||
TEST_CASE("Expectations", "[S]") | ||
{ | ||
CHECK(bux::asciiLiteral("\n") == "\\n"); | ||
CHECK(bux::asciiLiteral("\r") == "\\r"); | ||
CHECK(bux::asciiLiteral("\t") == "\\t"); | ||
// | ||
CHECK(bux::asciiLiteral((const char*)u8"\u1234") == (const char*)u8"\u1234"); | ||
CHECK(bux::asciiLiteral((const char*)u8"\uABCD") == (const char*)u8"\uABCD"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters