Update tests for new truncate behavior

This commit is contained in:
Matthias Clasen 2013-12-15 20:06:25 -05:00
parent baed90af43
commit 453a69534c
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ test_truncate(void)
g_assert_no_error (error); g_assert_no_error (error);
g_assert (res); g_assert (res);
g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6); 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); stream_data = g_memory_output_stream_get_data (base_stream);
g_assert_cmpint (stream_data[0], ==, 'a'); g_assert_cmpint (stream_data[0], ==, 'a');
g_assert_cmpint (stream_data[1], ==, 'b'); g_assert_cmpint (stream_data[1], ==, 'b');

View File

@ -473,7 +473,7 @@ test_truncate (void)
g_assert_no_error (error); g_assert_no_error (error);
g_assert (res); g_assert (res);
g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6); 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); stream_data = g_memory_output_stream_get_data (base_stream);
g_assert_cmpint (stream_data[0], ==, 0x01); g_assert_cmpint (stream_data[0], ==, 0x01);
g_assert_cmpint (stream_data[1], ==, 0x23); g_assert_cmpint (stream_data[1], ==, 0x23);