[tests/buffer] Update tests for previous commit

This commit is contained in:
Behdad Esfahbod 2020-10-09 17:59:54 -06:00
parent 8f5d8b155c
commit 04658ec48f
1 changed files with 2 additions and 2 deletions

View File

@ -910,12 +910,12 @@ test_buffer_serialize_deserialize (void)
char test[1024];
unsigned int num_glyphs, consumed;
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,
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
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,
HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
g_assert_cmpstr ( test, ==, "!!");