mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
tests: printf: add unit test for %%
https://bugzilla.gnome.org/show_bug.cgi?id=748414
This commit is contained in:
parent
6c394643be
commit
a0f2e9ec2a
1 changed files with 13 additions and 0 deletions
|
@ -118,6 +118,18 @@ GST_START_TEST (printf_I32_I64)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
GST_START_TEST (printf_percent)
|
||||||
|
{
|
||||||
|
gchar *str;
|
||||||
|
|
||||||
|
/* standard int/uint */
|
||||||
|
str = test_printf ("%u%%", 99);
|
||||||
|
fail_unless_equals_string (str, "99%");
|
||||||
|
g_free (str);
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_END_TEST;
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
gst_printf_suite (void)
|
gst_printf_suite (void)
|
||||||
{
|
{
|
||||||
|
@ -128,6 +140,7 @@ gst_printf_suite (void)
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
tcase_add_test (tc_chain, printf_I32_I64);
|
tcase_add_test (tc_chain, printf_I32_I64);
|
||||||
|
tcase_add_test (tc_chain, printf_percent);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue