Lines Matching defs:test
38 return "test userdata emit";
46 const ucl_object_t *found, *it_obj, *test;
80 cur = ucl_object_fromstring_common (" test string ", 0, UCL_STRING_TRIM);
82 cur = ucl_object_fromstring_common (" test \nstring\n\r\n\b\t\f\\\" ", 0,
85 cur = ucl_object_fromstring_common (" test string \n", 0, 0);
139 /* Ref object to test refcounts */
160 cur = ucl_object_fromstring_common ("#test", 0, UCL_STRING_PARSE_INT);
169 cur = ucl_object_fromlstring ("test", 3);
171 test = ucl_object_lookup_any (obj, "key100", "key200", "key300", "key16", NULL);
172 assert (test == cur);
173 test = ucl_object_lookup_len (obj, "key160", 5);
174 assert (test == cur);
176 assert (test == cur);
177 test = ucl_object_pop_key (obj, "key16");
178 assert (test == NULL);
179 test = ucl_object_lookup_len (obj, "key160", 5);
180 assert (test == NULL);
186 /* Array merging test */
188 ucl_array_append (test_obj, ucl_object_fromstring ("test"));
192 cur = ucl_object_fromstring ("test");
196 cur = ucl_object_fromlstring ("test", 4);
207 test = ucl_object_lookup (obj, "key16");
208 ucl_comments_add (comments, found, "# test comment");
210 assert (ucl_comments_find (comments, test) == NULL);
211 ucl_comments_move (comments, found, test);
213 assert (ucl_comments_find (comments, test) != NULL);
217 cur = ucl_object_fromstring ("test");
220 test = ucl_array_replace_index (ar1, ucl_object_fromstring ("test2"), 0);
221 assert (test == cur);