X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fapi%2Ftest-buffer.c;h=b9a0268ce4abf32bf882fc61fdf01e1694de5052;hb=1c272a48507bb3c7905aa30d8bf0d092b474f781;hp=17607f1ed593fa753d2fd5ef4ccc714356ff9ba1;hpb=e3a9d0d2fe726180a0456893d22d4aaa3ddb8931;p=platform%2Fupstream%2Fharfbuzz.git diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c index 17607f1..b9a0268 100644 --- a/test/api/test-buffer.c +++ b/test/api/test-buffer.c @@ -196,7 +196,7 @@ test_buffer_contents (fixture_t *fixture, gconstpointer user_data) g_assert_cmpint (len, ==, 5); for (i = 0; i < len; i++) { - g_assert_cmphex (glyphs[i].mask, ==, 1); + g_assert_cmphex (glyphs[i].mask, ==, 0); g_assert_cmphex (glyphs[i].var1.u32, ==, 0); g_assert_cmphex (glyphs[i].var2.u32, ==, 0); } @@ -369,10 +369,10 @@ typedef struct { /* note: we skip the first and last byte when adding to buffer */ static const utf8_conversion_test_t utf8_conversion_tests[] = { - {"a\303\207", {-1}}, + {"a\303\207", {(hb_codepoint_t) -1}}, {"a\303\207b", {0xC7}}, - {"ab\303cd", {'b', -1, 'c'}}, - {"ab\303\302\301cd", {'b', -1, -1, -1, 'c'}} + {"ab\303cd", {'b', (hb_codepoint_t) -1, 'c'}}, + {"ab\303\302\301cd", {'b', (hb_codepoint_t) -1, (hb_codepoint_t) -1, (hb_codepoint_t) -1, 'c'}} }; static void @@ -715,10 +715,10 @@ typedef struct { static const utf16_conversion_test_t utf16_conversion_tests[] = { {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}}, {{0x41, 0xD800, 0xDF02, 0x61}, {0x10302}}, - {{0x41, 0xD800, 0xDF02}, {-1}}, - {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, -1}}, - {{0x41, 0xD800, 0x61, 0xDF02}, {-1, 0x61}}, - {{0x41, 0xDF00, 0x61}, {-1}}, + {{0x41, 0xD800, 0xDF02}, {(hb_codepoint_t) -1}}, + {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, (hb_codepoint_t) -1}}, + {{0x41, 0xD800, 0x61, 0xDF02}, {(hb_codepoint_t) -1, 0x61}}, + {{0x41, 0xDF00, 0x61}, {(hb_codepoint_t) -1}}, {{0x41, 0x61}, {0}} }; @@ -764,15 +764,15 @@ typedef struct { /* note: we skip the first and last item from utf32 when adding to buffer */ static const utf32_conversion_test_t utf32_conversion_tests[] = { - {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, -3, -3}}, + {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, (hb_codepoint_t) -3, (hb_codepoint_t) -3}}, {{0x41, 0x004D, 0x0430, 0x4E8C, 0x10302, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}}, - {{0x41, 0xD800, 0xDF02, 0x61}, {-3, -3}}, - {{0x41, 0xD800, 0xDF02}, {-3}}, - {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, -3}}, - {{0x41, 0xD800, 0x61, 0xDF02}, {-3, 0x61}}, - {{0x41, 0xDF00, 0x61}, {-3}}, + {{0x41, 0xD800, 0xDF02, 0x61}, {(hb_codepoint_t) -3, (hb_codepoint_t) -3}}, + {{0x41, 0xD800, 0xDF02}, {(hb_codepoint_t) -3}}, + {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, (hb_codepoint_t) -3}}, + {{0x41, 0xD800, 0x61, 0xDF02}, {(hb_codepoint_t) -3, 0x61}}, + {{0x41, 0xDF00, 0x61}, {(hb_codepoint_t) -3}}, {{0x41, 0x10FFFF, 0x61}, {0x10FFFF}}, - {{0x41, 0x110000, 0x61}, {-3}}, + {{0x41, 0x110000, 0x61}, {(hb_codepoint_t) -3}}, {{0x41, 0x61}, {0}} };