Improve memory efficiency via plain ints for length
This commit is contained in:
@@ -50,11 +50,11 @@ static void test_put_modify_get(void) {
|
||||
ucl_list_append(state, obj, ucl_string_create(state, "quux"));
|
||||
response = ucl_scope_get(state, scope, "foo");
|
||||
|
||||
TEST_ASSERT_OBJ_STRING(ucl_list_nth(state, response, 2));
|
||||
TEST_ASSERT_EQUAL_STRING(ucl_list_nth(state, response, 2)->string, "quux");
|
||||
TEST_ASSERT_OBJ_STRING(ucl_list_nth(response, 2));
|
||||
TEST_ASSERT_EQUAL_STRING(ucl_list_nth(response, 2)->string, "quux");
|
||||
|
||||
TEST_ASSERT_OBJ_STRING(ucl_list_nth(state, obj, 2));
|
||||
TEST_ASSERT_EQUAL_STRING(ucl_list_nth(state, obj, 2)->string, "quux");
|
||||
TEST_ASSERT_OBJ_STRING(ucl_list_nth(obj, 2));
|
||||
TEST_ASSERT_EQUAL_STRING(ucl_list_nth(obj, 2)->string, "quux");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user