- status = bt_value_array_append_integer_element(array1, 23);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_real_element(array1, 14.2);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_bool_element(array1, BT_FALSE);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_real_element(array2, 14.2);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_integer_element(array2, 23);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_bool_element(array2, BT_FALSE);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_integer_element(array3, 23);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_real_element(array3, 14.2);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- status = bt_value_array_append_bool_element(array3, BT_FALSE);
- BT_ASSERT(status == BT_VALUE_STATUS_OK);
- BT_ASSERT(bt_value_array_get_size(array1) == 3);
- BT_ASSERT(bt_value_array_get_size(array2) == 3);
- BT_ASSERT(bt_value_array_get_size(array3) == 3);
-
- ok(!bt_value_compare(bt_value_null,
- array1),
+ append_status = bt_value_array_append_signed_integer_element(array1, 23);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_real_element(array1, 14.2);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_bool_element(array1, BT_FALSE);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_real_element(array2, 14.2);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_signed_integer_element(array2, 23);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_bool_element(array2, BT_FALSE);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_signed_integer_element(array3, 23);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_real_element(array3, 14.2);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ append_status = bt_value_array_append_bool_element(array3, BT_FALSE);
+ BT_ASSERT(append_status == BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK);
+ BT_ASSERT(bt_value_array_get_length(array1) == 3);
+ BT_ASSERT(bt_value_array_get_length(array2) == 3);
+ BT_ASSERT(bt_value_array_get_length(array3) == 3);
+
+ ok(!bt_value_is_equal(bt_value_null, array1),