' This is file g_Assert.bas, an example for GLib
' (C) 2011 by Thomas[ dot ]Freiherr[ at ]gmx{ dot }net
' License GPLv 3
'
' See for details
' http://developer.gnome.org/glib/
'
' Uncomment lines to test (programm aborts when assertation fails)
' Note: this example doesn't execute under windows XP or below

#include "glib-object.bi"

'var t = "3"
'g_assert_cmpstr(t,<=,"2")

'var x = 6.5
'g_assert_cmpint(x, <, 6)

'g_assert_cmpuint(9, >, 9)

'VAR h = 1
'g_assert_cmphex(h, >=, 1.5)

'g_assert_cmpfloat(x,<,0.19)
'g_assert_cmpfloat(2, >, 19)

'g_assert_no_error(err)

'g_assert_error(err, dom, c)



