mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virjsontest: Introduce a test case for an empty array
Previous commits were all about empty strings and empty JSON arrays. Introduce a test case for "[]" to make sure we pare it correctly. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
This commit is contained in:
parent
f3a7b3e85b
commit
148b7aa7e2
@ -553,6 +553,7 @@ mymain(void)
|
|||||||
DO_TEST_PARSE("integer", "1", NULL);
|
DO_TEST_PARSE("integer", "1", NULL);
|
||||||
DO_TEST_PARSE("boolean", "true", NULL);
|
DO_TEST_PARSE("boolean", "true", NULL);
|
||||||
DO_TEST_PARSE("null", "null", NULL);
|
DO_TEST_PARSE("null", "null", NULL);
|
||||||
|
DO_TEST_PARSE("[]", "[]", NULL);
|
||||||
|
|
||||||
DO_TEST_PARSE("escaping symbols", "[\"\\\"\\t\\n\\\\\"]", NULL);
|
DO_TEST_PARSE("escaping symbols", "[\"\\\"\\t\\n\\\\\"]", NULL);
|
||||||
DO_TEST_PARSE("escaped strings", "[\"{\\\"blurb\\\":\\\"test\\\"}\"]", NULL);
|
DO_TEST_PARSE("escaped strings", "[\"{\\\"blurb\\\":\\\"test\\\"}\"]", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user