"string value objects are equivalent (\"hello\" and \"hello\")");
BT_VALUE_PUT_REF_AND_RESET(string1);
"string value objects are equivalent (\"hello\" and \"hello\")");
BT_VALUE_PUT_REF_AND_RESET(string1);
"empty array value objects are equivalent");
append_status = bt_value_array_append_signed_integer_element(array1, 23);
"empty array value objects are equivalent");
append_status = bt_value_array_append_signed_integer_element(array1, 23);
BT_ASSERT(bt_value_array_get_length(array2) == 3);
BT_ASSERT(bt_value_array_get_length(array3) == 3);
BT_ASSERT(bt_value_array_get_length(array2) == 3);
BT_ASSERT(bt_value_array_get_length(array3) == 3);
"array value objects are not equivalent ([23, 14.2, BT_FALSE] and [14.2, 23, BT_FALSE])");
"array value objects are not equivalent ([23, 14.2, BT_FALSE] and [14.2, 23, BT_FALSE])");
"array value objects are equivalent ([23, 14.2, BT_FALSE] and [23, 14.2, BT_FALSE])");
BT_VALUE_PUT_REF_AND_RESET(array1);
"array value objects are equivalent ([23, 14.2, BT_FALSE] and [23, 14.2, BT_FALSE])");
BT_VALUE_PUT_REF_AND_RESET(array1);
- test_compare_null();
- test_compare_bool();
- test_compare_unsigned_integer();
- test_compare_signed_integer();
- test_compare_real();
- test_compare_string();
- test_compare_array();
- test_compare_map();
+ test_is_equal_null();
+ test_is_equal_bool();
+ test_is_equal_unsigned_integer();
+ test_is_equal_signed_integer();
+ test_is_equal_real();
+ test_is_equal_string();
+ test_is_equal_array();
+ test_is_equal_map();
/*
* Here's the deal here. If we make sure that each value object
* of our deep copy has a different address than its source, and
/*
* Here's the deal here. If we make sure that each value object
* of our deep copy has a different address than its source, and
ok(null_copy_obj == bt_value_null,
"bt_value_copy() returns the same pointer (null)");
ok(null_copy_obj == bt_value_null,
"bt_value_copy() returns the same pointer (null)");
"source and destination value objects have the same content");
BT_VALUE_PUT_REF_AND_RESET(map_copy_obj);
"source and destination value objects have the same content");
BT_VALUE_PUT_REF_AND_RESET(map_copy_obj);
elem_a = bt_value_map_borrow_entry_value_const(map_a, key);
elem_b = bt_value_map_borrow_entry_value_const(map_b, key);
elem_a = bt_value_map_borrow_entry_value_const(map_a, key);
elem_b = bt_value_map_borrow_entry_value_const(map_b, key);