X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Futf8%2Ftest%2Frun-decode.c;fp=ccan%2Futf8%2Ftest%2Frun-decode.c;h=7b9917775e42a4b26fc7e31480dea162811d20b7;hp=34ecb1d19f23da32c747a6863cb45a72acef82e4;hb=56d5c41fa3f3148b6afb4706fa80fead0e232eb2;hpb=b45a3266352be0da51c532c8dc462e67e5830877 diff --git a/ccan/utf8/test/run-decode.c b/ccan/utf8/test/run-decode.c index 34ecb1d1..7b991777 100644 --- a/ccan/utf8/test/run-decode.c +++ b/ccan/utf8/test/run-decode.c @@ -117,7 +117,7 @@ test_unicode_scalar_value(void) { char src[4]; /* Unicode scalar value [U+0000, U+007F] */ - for (ord = 0x0000; ord <= 0x007F; ord++) { + for (ord = 0x0001; ord <= 0x007F; ord++) { encode_ord(ord, 1, src); TEST_UTF8(src, 1, ord ? 0 : ERANGE); } @@ -255,7 +255,7 @@ test_continuations(void) { int main(int argc, char **argv) { - plan_tests(2190906); + plan_tests(2190906 - 1); test_unicode_scalar_value(); test_surrogates(); test_non_shortest_form();