Lines Matching refs:Check
362 static void Check(int expected_errno, const char* src_enc, const char* src, size_t n) { in Check() function
376 Check(EILSEQ, "ASCII", "\xac", 1); // > 0x7f, so not ASCII. in TEST()
380 Check(EILSEQ, "utf8", "\x82", 1); // Invalid initial byte. in TEST()
384 Check(EILSEQ, "utf8", "\xe2\xe2\x82", 3); // Invalid second byte. in TEST()
388 Check(EILSEQ, "utf16be", "\xdc\x37" "\xd8\x01", 4); in TEST()
392 Check(EILSEQ, "utf16le", "\x37\xdc" "\x01\xd8", 4); in TEST()
396 Check(EINVAL, "utf8", "\xe2\x82", 2); // Missing final byte of 3-byte sequence. in TEST()
400 Check(EINVAL, "utf16be", "\x00", 1); // Missing second byte. in TEST()
404 Check(EINVAL, "utf16be", "\xd8\x01", 2); in TEST()
408 Check(EINVAL, "utf16be", "\xd8\x01\xdc", 3); in TEST()
412 Check(EINVAL, "utf16le", "\x24", 1); // Missing second byte. in TEST()
416 Check(EINVAL, "utf16le", "\x01\xd8", 2); in TEST()
420 Check(EINVAL, "utf16le", "\x01\xd8\x37", 3); in TEST()
424 Check(EINVAL, "utf32be", "\x00\x00\x00", 3); // Missing final byte. in TEST()
428 Check(EINVAL, "utf32le", "\x24\x00\x00", 3); // Missing final byte. in TEST()