| 1 | #include <stddef.h> // NULL for C++
|
| 2 |
|
| 3 | const char* J8_TEST_CASES[] = {
|
| 4 | "x",
|
| 5 | "",
|
| 6 | "foozz abcdef abcdef \x01 \x02 \u03bc 0123456789 0123456 \xff",
|
| 7 | "foozz abcd \xfe \x1f",
|
| 8 | "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0e\x0f\x10\xfe",
|
| 9 | "\xff\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0e\x0f\x10\xfe",
|
| 10 | "C:\\Program Files\\",
|
| 11 | "Fool's Gold", // single quote
|
| 12 |
|
| 13 | "\xf0\x9f\xa4\xa6", // \U0001f926
|
| 14 | // This case is buggy
|
| 15 | "\xf0\x9f\xa4\xff", // \U0001f926 with bad byte at the end
|
| 16 |
|
| 17 | "\xce", // Truncated, should not have \x00 on the end
|
| 18 |
|
| 19 | NULL,
|
| 20 | };
|