mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 16:38:54 +02:00
Add fuzzy floating point comparison macro
Add a test macro that allows comparing two floating point values for equality within a certain tolerance. This macro has been independently reimplemented by various projects: * Clutter * Graphene * colord https://gitlab.gnome.org/GNOME/glib/issues/914
This commit is contained in:
@@ -3147,6 +3147,7 @@ g_assert_cmpint
|
||||
g_assert_cmpuint
|
||||
g_assert_cmphex
|
||||
g_assert_cmpfloat
|
||||
g_assert_cmpfloat_with_epsilon
|
||||
g_assert_cmpmem
|
||||
g_assert_no_error
|
||||
g_assert_error
|
||||
|
Reference in New Issue
Block a user