mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Update tests for new truncate behavior
This commit is contained in:
parent
baed90af43
commit
453a69534c
@ -293,7 +293,7 @@ test_truncate(void)
|
||||
g_assert_no_error (error);
|
||||
g_assert (res);
|
||||
g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6);
|
||||
g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 4);
|
||||
g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 6);
|
||||
stream_data = g_memory_output_stream_get_data (base_stream);
|
||||
g_assert_cmpint (stream_data[0], ==, 'a');
|
||||
g_assert_cmpint (stream_data[1], ==, 'b');
|
||||
|
@ -473,7 +473,7 @@ test_truncate (void)
|
||||
g_assert_no_error (error);
|
||||
g_assert (res);
|
||||
g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6);
|
||||
g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 4);
|
||||
g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 6);
|
||||
stream_data = g_memory_output_stream_get_data (base_stream);
|
||||
g_assert_cmpint (stream_data[0], ==, 0x01);
|
||||
g_assert_cmpint (stream_data[1], ==, 0x23);
|
||||
|
Loading…
Reference in New Issue
Block a user