- BT_ASSERT(!bt_value_map_insert_integer(map1, "one", 23));
- BT_ASSERT(!bt_value_map_insert_real(map1, "two", 14.2));
- BT_ASSERT(!bt_value_map_insert_bool(map1, "three", BT_FALSE));
- BT_ASSERT(!bt_value_map_insert_real(map2, "one", 14.2));
- BT_ASSERT(!bt_value_map_insert_integer(map2, "two", 23));
- BT_ASSERT(!bt_value_map_insert_bool(map2, "three", BT_FALSE));
- BT_ASSERT(!bt_value_map_insert_bool(map3, "three", BT_FALSE));
- BT_ASSERT(!bt_value_map_insert_integer(map3, "one", 23));
- BT_ASSERT(!bt_value_map_insert_real(map3, "two", 14.2));
- BT_ASSERT(bt_value_map_size(map1) == 3);
- BT_ASSERT(bt_value_map_size(map2) == 3);
- BT_ASSERT(bt_value_map_size(map3) == 3);
-
- ok(!bt_value_compare(bt_value_null, map1),
+
+ status = bt_value_map_insert_signed_integer_entry(map1, "one", 23);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_real_entry(map1, "two", 14.2);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_bool_entry(map1, "three",
+ BT_FALSE);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_real_entry(map2, "one", 14.2);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_signed_integer_entry(map2, "two", 23);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_bool_entry(map2, "three",
+ BT_FALSE);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_bool_entry(map3, "three",
+ BT_FALSE);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_signed_integer_entry(map3, "one", 23);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ status = bt_value_map_insert_real_entry(map3, "two", 14.2);
+ BT_ASSERT(status == BT_VALUE_STATUS_OK);
+ BT_ASSERT(bt_value_map_get_size(map1) == 3);
+ BT_ASSERT(bt_value_map_get_size(map2) == 3);
+ BT_ASSERT(bt_value_map_get_size(map3) == 3);
+
+ ok(!bt_value_compare(bt_value_null,
+ map1),