diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-05-19 17:17:29 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-05-19 17:17:29 +0000 |
commit | 0325ae745658369741003f7feed498fcedebb359 (patch) | |
tree | ad1f70d315aec27a043688243426bf2c1a62dd7b /tests/asv.c | |
parent | e43e4f2897e329f25eee38f0b2f44cbee780e21e (diff) | |
download | telepathy-glib-0325ae745658369741003f7feed498fcedebb359.tar.gz |
Add trivial regression tests for tp_asv_lookup() too
20080519171729-53eee-ade066d1da0e5f1a08edd060ffe82b71391ae609.gz
Diffstat (limited to 'tests/asv.c')
-rw-r--r-- | tests/asv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/asv.c b/tests/asv.c index 842403ee5..2a9acdba2 100644 --- a/tests/asv.c +++ b/tests/asv.c @@ -238,6 +238,14 @@ int main (int argc, char **argv) MYASSERT (tp_asv_get_string (hash, "i32:0") == NULL, ""); MYASSERT (tp_asv_get_string (hash, "u32:0") == NULL, ""); + /* Tests: tp_asv_lookup */ + + MYASSERT (G_VALUE_HOLDS_STRING (tp_asv_lookup (hash, "s"))); + MYASSERT (G_VALUE_HOLDS_UINT (tp_asv_lookup (hash, "u32:0"))); + MYASSERT (G_VALUE_HOLDS_BOOLEAN (tp_asv_lookup (hash, "b:TRUE"))); + MYASSERT (G_VALUE_HOLDS_INT (tp_asv_lookup (hash, "i32:0"))); + MYASSERT (tp_asv_lookup (hash, "not-there") == NULL); + /* Teardown */ g_hash_table_destroy (hash); |