diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-01-18 14:20:54 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-01-18 14:20:54 +0000 |
commit | 0d822fdb16cd786c64a822cedfb6d21768eab735 (patch) | |
tree | 85471ac0b7bb0d9a2429c2273b7ed4cb4056bf15 /tests | |
parent | af56757620c964f5d547683f2670ab97b10a0d99 (diff) |
test-util: run silently
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-util.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test-util.c b/tests/test-util.c index 0249e9946..7236e0f93 100644 --- a/tests/test-util.c +++ b/tests/test-util.c @@ -9,15 +9,12 @@ int main (int argc, char **argv) GPtrArray *ptrarray; gchar *string; - puts ("Testing tp_strdiff..."); g_assert (!tp_strdiff (NULL, NULL)); g_assert (tp_strdiff ("badger", NULL)); g_assert (tp_strdiff (NULL, "badger")); g_assert (!tp_strdiff ("badger", "badger")); g_assert (tp_strdiff ("badger", "mushroom")); - puts ("... OK"); - puts ("Testing tp_g_ptr_array_contains..."); ptrarray = g_ptr_array_new (); g_ptr_array_add (ptrarray, GINT_TO_POINTER (23)); g_ptr_array_add (ptrarray, GINT_TO_POINTER (42)); @@ -25,19 +22,18 @@ int main (int argc, char **argv) g_assert (tp_g_ptr_array_contains (ptrarray, GINT_TO_POINTER (42))); g_assert (!tp_g_ptr_array_contains (ptrarray, GINT_TO_POINTER (666))); g_ptr_array_free (ptrarray, TRUE); - puts ("... OK"); - puts ("Testing tp_escape_as_identifier..."); string = tp_escape_as_identifier (""); g_assert (!tp_strdiff (string, "_")); g_free (string); + string = tp_escape_as_identifier ("badger"); g_assert (!tp_strdiff (string, "badger")); g_free (string); + string = tp_escape_as_identifier ("0123abc_xyz\x01\xff"); g_assert (!tp_strdiff (string, "_30123abc_5fxyz_01_ff")); g_free (string); - puts ("... OK"); return 0; } |