iXML Community Group Test Suite

01 Jun 2022 (03 Jun 2022)

Top-level catalog for tests in the iXML Community Group Test Suite.

Tests have been contributed from several sources, but the core of the test collection are the tests contributed by Steven Pemberton in December 2021.

Tests producing parse trees

01 Jun 2022

Tests provided by Steven Pemberton in December 2021, with corrections of 21 December. Reorganized by Norm Tovey-Walsh, February 2022.

ixml tests

Created 16 Dec 2021 by SP

Updated 21 Dec 2021 by SP

Corrected input, grammar, or output for 5 tests

Updated 30 Dec 2021 by MSM

Updated catalog, corrected many tests.

Updated 30 May 2022 by MSM

Add whitespace-and-delimiters test sets.

json1

Created 16 Dec 2021 by SP

Invisible XML Grammar

json: S, object.
object: "{", S, members, "}", S.
-members: pair**(",", S).
pair: @string, S, ":", S, value.
array: "[", S, value**(",", S), "]", S.
-value: string, S; number, S; object; array; "true", S; "false", S; "null", S.
string: -"""", char*, -"""".
-char: ~['"'; "\" {;[#0-#1F];}]; '\', ('"'; "\"; "/"; "b"; "f"; "n"; "r"; "t"; "u", hexdigits).
number: "-"?, int, frac?, exp?.
-int: "0"; digit19, digit*.
-frac: ".", digit+.
-exp: ("e"; "E"), sign?, digit+.
-sign: "+"; "-".
-S: " "*.
-digit: ["0"-"9"].
-digit19: ["1"-"9"].
-hexdigits: hexdigit, hexdigit, hexdigit, hexdigit.
-hexdigit: digit; ["a"-"f"]; ["A"-"F"].

Test case: json1

Repository URI: …/tests/correct/test-catalog.xml

Created 16 Dec 2021 by SP

Updated 30 Dec 2021 by MSM

replace trailing LF in input with space

Updated 01 Jan 2022 by MSM

removed non-significant whitespace from expected result

Updated 01 Jan 2022 by MSM

trimmed trailing blank to agree with expected result, it is not actually required by the grammar

Input string (33 characters)

{"name": "pi", "value": 3.145926}

Expected result

<json>
   <object>{<pair string="name">: <string>pi</string>
      </pair>, <pair string="value">: <number>3.145926</number>
      </pair>}</object>
</json>