Lines Matching refs:VALID
35 #define VALID(lit) assert(is_valid_utf8(lit, sizeof(lit)-1)) macro
46 VALID("ascii"); in test_is_valid_utf8()
47 VALID("\xCE\xBA\xE1\xBD\xB9\xCF\x83\xCE\xBC\xCE\xB5"); in test_is_valid_utf8()
49 VALID(""); in test_is_valid_utf8()
50 VALID("\x00"); in test_is_valid_utf8()
51 VALID("\x00\x00"); in test_is_valid_utf8()
53 VALID("\x50"); in test_is_valid_utf8()
54 VALID("\xC2\x80"); in test_is_valid_utf8()
55 VALID("\xE0\xA0\x80"); in test_is_valid_utf8()
56 VALID("\xF0\x90\x80\x80"); in test_is_valid_utf8()
62 VALID("\x7F"); in test_is_valid_utf8()
63 VALID("\xDF\xBF"); in test_is_valid_utf8()
64 VALID("\xEF\xBF\xBF"); in test_is_valid_utf8()
71 VALID("\xED\x9F\xBF"); in test_is_valid_utf8()
72 VALID("\xEE\x80\x80"); in test_is_valid_utf8()
73 VALID("\xEF\xBF\xBD"); in test_is_valid_utf8()
74 VALID("\xF4\x8F\xBF\xBF"); in test_is_valid_utf8()