diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-07-03 18:18:43 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-07-03 18:18:43 +0000 |
commit | af907279d8cd6ba95e5a9387f67cd638d698c9cf (patch) | |
tree | c246943174251e6f49fc615dba2ebb54c1a3a003 /tests/asv.c | |
parent | 563fb4a89415d883894311d8be374a334c698d0e (diff) |
Exercise tp_asv_size in tests/asv.c
Diffstat (limited to 'tests/asv.c')
-rw-r--r-- | tests/asv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/asv.c b/tests/asv.c index d1d1aa57..5f0b286e 100644 --- a/tests/asv.c +++ b/tests/asv.c @@ -29,16 +29,22 @@ int main (int argc, char **argv) hash = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) tp_g_value_slice_free); + MYASSERT (tp_asv_size (hash) == 0, "%u != 0", tp_asv_size (hash)); + value = tp_g_value_slice_new (G_TYPE_DOUBLE); g_value_set_double (value, 0.0); g_hash_table_insert (hash, "d:0", value); value = NULL; + MYASSERT (tp_asv_size (hash) == 1, "%u != 1", tp_asv_size (hash)); + value = tp_g_value_slice_new (G_TYPE_DOUBLE); g_value_set_double (value, -123.0); g_hash_table_insert (hash, "d:-123", value); value = NULL; + MYASSERT (tp_asv_size (hash) == 2, "%u != 2", tp_asv_size (hash)); + value = tp_g_value_slice_new (G_TYPE_BOOLEAN); g_value_set_boolean (value, TRUE); g_hash_table_insert (hash, "b:TRUE", value); |