gtestutils: Add g_assert_cmpvariant()

This is along the same lines as g_assert_cmpstr(), but for variants.

Based on a patch by Guillaume Desmottes.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/1191
This commit is contained in:
Philip Withnall
2018-12-12 11:24:27 +00:00
parent af39a37312
commit ee364db967
4 changed files with 90 additions and 1 deletions

View File

@@ -3176,6 +3176,7 @@ g_assert_cmphex
g_assert_cmpfloat
g_assert_cmpfloat_with_epsilon
g_assert_cmpmem
g_assert_cmpvariant
g_assert_no_error
g_assert_error
g_assert_true