2020-08-18 05:56:24 +03:00
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
ASSERT(4, sizeof(L'\0'));
|
|
|
|
ASSERT(97, L'a');
|
|
|
|
|
|
|
|
ASSERT(0, strcmp("αβγ", "\u03B1\u03B2\u03B3"));
|
|
|
|
ASSERT(0, strcmp("日本語", "\u65E5\u672C\u8A9E"));
|
|
|
|
ASSERT(0, strcmp("日本語", "\U000065E5\U0000672C\U00008A9E"));
|
|
|
|
ASSERT(0, strcmp("🌮", "\U0001F32E"));
|
|
|
|
|
2020-05-06 12:47:42 +03:00
|
|
|
ASSERT(-1, L'\xffffffff'>>31);
|
|
|
|
ASSERT(946, L'β');
|
|
|
|
ASSERT(12354, L'あ');
|
|
|
|
ASSERT(127843, L'🍣');
|
|
|
|
|
2020-08-18 05:56:24 +03:00
|
|
|
printf("OK\n");
|
|
|
|
return 0;
|
|
|
|
}
|