Assertions with GLib support

Assertions with GLib support — Checks that your program works as you expect with GLib support.

Synopsis




#define             cut_assert_equal_g_type             (expected, actual, ...)
#define             cut_assert_equal_g_value            (expected, actual, ...)

Description

Details

cut_assert_equal_g_type()

#define             cut_assert_equal_g_type(expected, actual, ...)

Passes if expected == actual.

expected :

an expected GType.

actual :

an actual GType.

... :

optional format string, followed by parameters to insert into the format string (as with printf())

cut_assert_equal_g_value()

#define             cut_assert_equal_g_value(expected, actual, ...)

Passes if expected == actual.

expected :

an expected GValue *.

actual :

an actual GValue *.

... :

optional format string, followed by parameters to insert into the format string (as with printf())