[tests/buffer] Update tests for previous commit
This commit is contained in:
parent
8f5d8b155c
commit
04658ec48f
|
@ -910,12 +910,12 @@ test_buffer_serialize_deserialize (void)
|
||||||
char test[1024];
|
char test[1024];
|
||||||
unsigned int num_glyphs, consumed;
|
unsigned int num_glyphs, consumed;
|
||||||
hb_buffer_t *indeterminate = hb_buffer_get_empty ();
|
hb_buffer_t *indeterminate = hb_buffer_get_empty ();
|
||||||
hb_buffer_serialize (indeterminate, 0, hb_buffer_get_length (indeterminate),
|
hb_buffer_serialize (indeterminate, 0, (unsigned) -1,
|
||||||
test, sizeof(test), &consumed, NULL, HB_BUFFER_SERIALIZE_FORMAT_JSON,
|
test, sizeof(test), &consumed, NULL, HB_BUFFER_SERIALIZE_FORMAT_JSON,
|
||||||
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
|
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
|
||||||
g_assert_cmpstr ( test, ==, "[]");
|
g_assert_cmpstr ( test, ==, "[]");
|
||||||
|
|
||||||
hb_buffer_serialize (indeterminate, 0, hb_buffer_get_length (indeterminate),
|
hb_buffer_serialize (indeterminate, 0, (unsigned) - 1,
|
||||||
test, sizeof(test), &consumed, NULL, HB_BUFFER_SERIALIZE_FORMAT_TEXT,
|
test, sizeof(test), &consumed, NULL, HB_BUFFER_SERIALIZE_FORMAT_TEXT,
|
||||||
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
|
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
|
||||||
g_assert_cmpstr ( test, ==, "!!");
|
g_assert_cmpstr ( test, ==, "!!");
|
||||||
|
|
Loading…
Reference in New Issue