Lines Matching full:assert

26 #include <assert.h>
32 assert (ptr == NULL); in ud_dtor()
77 assert (ucl_object_replace_key (obj, cur, "key0", 0, false)); in main()
91 assert (ucl_array_index_of (ar, cur) == 0); in main()
94 assert (ucl_array_index_of (ar, cur) == 1); in main()
97 assert (ucl_array_index_of (ar, cur) == 0); in main()
124 assert (ucl_object_todouble (cur) == 1.0); in main()
129 assert (ucl_object_todouble (cur) == 2.0); in main()
134 assert (ucl_object_todouble (cur) == 3.0); in main()
172 assert (test == cur); in main()
174 assert (test == cur); in main()
176 assert (test == cur); in main()
178 assert (test == NULL); in main()
180 assert (test == NULL); in main()
194 assert (ucl_object_delete_key (obj, "key18")); in main()
195 assert (!ucl_object_delete_key (obj, "key18")); in main()
198 assert (ucl_object_lookup_len (obj, "key18\0\0", 7) == cur); in main()
199 assert (ucl_object_lookup (obj, "key18") == NULL); in main()
200 assert (ucl_object_lookup_len (obj, "key18\0\1", 7) == NULL); in main()
201 assert (ucl_object_delete_keyl (obj, "key18\0\0", 7)); in main()
209 assert (ucl_comments_find (comments, found) != NULL); in main()
210 assert (ucl_comments_find (comments, test) == NULL); in main()
212 assert (ucl_comments_find (comments, found) == NULL); in main()
213 assert (ucl_comments_find (comments, test) != NULL); in main()
221 assert (test == cur); in main()
226 assert (found != NULL && ucl_object_toint (found) == 10); in main()
229 assert (found != NULL && ucl_object_toint (found) == 10); in main()
232 assert (found != NULL && ucl_object_toint (found) == 10); in main()
235 assert (found == NULL); in main()
238 assert (found == NULL); in main()
243 assert (!ucl_object_iter_chk_excpn (it)); in main()
245 assert (ucl_object_type (it_obj) == UCL_FLOAT); in main()
247 assert (!ucl_object_iter_chk_excpn (it)); in main()
249 assert (ucl_object_type (it_obj) == UCL_STRING); in main()
251 assert (!ucl_object_iter_chk_excpn (it)); in main()
253 assert (ucl_object_type (it_obj) == UCL_STRING); in main()
255 assert (!ucl_object_iter_chk_excpn (it)); in main()
257 assert (ucl_object_type (it_obj) == UCL_STRING); in main()
259 assert (!ucl_object_iter_chk_excpn (it)); in main()
263 assert (!ucl_object_iter_chk_excpn (it)); in main()
264 assert (ucl_object_type (it_obj) == UCL_FLOAT); in main()
266 assert (!ucl_object_iter_chk_excpn (it)); in main()
267 assert (ucl_object_type (it_obj) == UCL_INT); in main()
269 assert (!ucl_object_iter_chk_excpn (it)); in main()
270 assert (ucl_object_type (it_obj) == UCL_FLOAT); in main()
272 assert (!ucl_object_iter_chk_excpn (it)); in main()
273 assert (ucl_object_type (it_obj) == UCL_BOOLEAN); in main()
277 assert (ucl_object_emit_full (obj, UCL_EMIT_CONFIG, fn, comments)); in main()
288 assert (0); in main()
291 assert (ucl_parser_get_error (parser) != NULL); in main()
299 assert (ucl_parser_get_column (parser) == 0); in main()
300 assert (ucl_parser_get_linenum (parser) != 0); in main()
302 assert (ucl_parser_get_error_code (parser) == 0); in main()