]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: Bind assert_cmp* functions
authorChristopher White <cwhite@d3engineering.com>
Sat, 28 Nov 2020 17:47:41 +0000 (12:47 -0500)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 2 Dec 2020 21:37:28 +0000 (22:37 +0100)
commit2afae792aad17650cc0b64ecb06554239dee235c
tree5bde6b9aade84a88c2b0a65052e1be1aa9193791
parentcfb1bbc2467ab8007fc394d7b2682be8e80a0720
glib-2.0: Bind assert_cmp* functions

Add assert_cmpstr, assert_cmpint, assert_cmpuint, assert_cmphex,
assert_cmpfloat, assert_cmpfloat_with_epsilon and assert_cmpvariant.

Add enum GLib.CompareOperator which defines the supported operators.

  "g_assert_cmpint(foo,==,1)" translates to "assert_cmpint(foo, EQ, 1)"

Based on patch by Luca Bruno

Fixes https://gitlab.gnome.org/GNOME/vala/issues/395
tests/Makefile.am
tests/basic-types/gassert.vala [new file with mode: 0644]
vapi/glib-2.0.vapi