• Home
  • Raw
  • Download

Lines Matching refs:xstr

27   IWXSTR *xstr = iwxstr_new();  in ejdb_test3_1()  local
28 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_1()
60 iwxstr_clear(xstr); in ejdb_test3_1()
61 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
63 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":1},\"n\":1}"); in ejdb_test3_1()
79 iwxstr_clear(xstr); in ejdb_test3_1()
80 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
83 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
85 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
97 iwxstr_clear(xstr); in ejdb_test3_1()
98 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
101 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":3},\"n\":3}"); in ejdb_test3_1()
103 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
115 iwxstr_clear(xstr); in ejdb_test3_1()
116 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
119 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":8},\"n\":8}"); in ejdb_test3_1()
121 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":1},\"n\":1}"); in ejdb_test3_1()
132 iwxstr_clear(xstr); in ejdb_test3_1()
133 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
136 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
138 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":1},\"n\":1}"); in ejdb_test3_1()
151 iwxstr_clear(xstr); in ejdb_test3_1()
152 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
155 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":4},\"n\":4}"); in ejdb_test3_1()
157 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
186 iwxstr_clear(xstr); in ejdb_test3_1()
187 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
189 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
216 iwxstr_clear(xstr); in ejdb_test3_1()
217 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
219 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
233 iwxstr_clear(xstr); in ejdb_test3_1()
234 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
237 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
239 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":4},\"n\":4}"); in ejdb_test3_1()
241 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":6},\"n\":6}"); in ejdb_test3_1()
257 iwxstr_clear(xstr); in ejdb_test3_1()
258 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
261 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
263 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
279 iwxstr_clear(xstr); in ejdb_test3_1()
280 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
283 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
285 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
301 iwxstr_clear(xstr); in ejdb_test3_1()
302 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
305 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":3},\"n\":3}"); in ejdb_test3_1()
307 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":9},\"n\":9}"); in ejdb_test3_1()
322 iwxstr_clear(xstr); in ejdb_test3_1()
323 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
326 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":9},\"n\":9}"); in ejdb_test3_1()
328 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":3},\"n\":3}"); in ejdb_test3_1()
338 iwxstr_destroy(xstr); in ejdb_test3_1()
356 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_2() local
357 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_2()
404 iwxstr_clear(xstr); in ejdb_test3_2()
406 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
408 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":16777215},\"n\":1}"); in ejdb_test3_2()
410 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
412 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":16777215},\"n\":9}"); in ejdb_test3_2()
427 iwxstr_clear(xstr); in ejdb_test3_2()
428 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
431 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":126},\"n\":12}"); in ejdb_test3_2()
433 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":126},\"n\":11}"); in ejdb_test3_2()
445 iwxstr_clear(xstr); in ejdb_test3_2()
447 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
449 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":16777215},\"n\":9}"); in ejdb_test3_2()
451 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
453 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":126},\"n\":11}"); in ejdb_test3_2()
468 iwxstr_clear(xstr); in ejdb_test3_2()
470 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
472 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":127},\"n\":2}"); in ejdb_test3_2()
474 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
476 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":127},\"n\":10}"); in ejdb_test3_2()
491 iwxstr_clear(xstr); in ejdb_test3_2()
493 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
495 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":127},\"n\":2}"); in ejdb_test3_2()
497 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
499 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":127},\"n\":10}"); in ejdb_test3_2()
501 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
503 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":16777215},\"n\":1}"); in ejdb_test3_2()
505 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_2()
507 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":16777215},\"n\":9}"); in ejdb_test3_2()
518 iwxstr_destroy(xstr); in ejdb_test3_2()
536 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_3() local
537 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_3()
688 iwxstr_destroy(xstr); in ejdb_test3_3()
711 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_4() local
712 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_4()
748 iwxstr_clear(xstr); in ejdb_test3_4()
749 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_4()
752 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"tags\":[\"foo\",\"bar\",\"gaz\"],\"n\":1}"); in ejdb_test3_4()
754 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"tags\":[\"gaz\",\"zaz\"],\"n\":2}"); in ejdb_test3_4()
767 iwxstr_clear(xstr); in ejdb_test3_4()
768 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_4()
771 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"tags\":[\"gaz\",\"zaz\"],\"n\":2}"); in ejdb_test3_4()
792 iwxstr_clear(xstr); in ejdb_test3_4()
793 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_4()
795 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"tags\":[\"gaz\",\"zaz\",\"boo\"],\"n\":2}"); in ejdb_test3_4()
818 iwxstr_clear(xstr); in ejdb_test3_4()
819 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_4()
821 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"tags\":[\"foo\",\"bar\",\"gaz\"],\"n\":1}"); in ejdb_test3_4()
834 iwxstr_destroy(xstr); in ejdb_test3_4()
849 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_5() local
850 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_5()
865 iwxstr_clear(xstr); in ejdb_test3_5()
866 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_5()
868 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_5()
897 iwxstr_clear(xstr); in ejdb_test3_5()
898 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_5()
901 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":1},\"n\":1}"); in ejdb_test3_5()
903 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":4},\"n\":4}"); in ejdb_test3_5()
905 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_5()
924 iwxstr_destroy(xstr); in ejdb_test3_5()
944 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_6() local
945 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_6()
967 iwxstr_clear(xstr); in ejdb_test3_6()
968 rc = jbl_as_json(list->first->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_6()
970 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"foo\":\"baz\",\"baz\":\"qux\"}"); in ejdb_test3_6()
985 iwxstr_destroy(xstr); in ejdb_test3_6()