iXML Community Group Test Suite
23 Oct 2023 (22 Nov 2023)
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
22 Nov 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.
expr
Created 16 Dec 2021 by SP
Invisible XML Grammar
expression: expr.
-expr: term; sum; diff.
sum: expr, -"+", term.
diff: expr, "-", term.
-term: factor; prod; div.
prod: term, -"×", factor.
div: term, "÷", factor.
-factor: id; number; bracketed.
bracketed: -"(", expr, -")".
id: @name.
name: letter+.
number: @value.
value: digit+.
-letter: ["a"-"z"].
-digit: ["0"-"9"].
Test case: expr
Repository URI: …/tests/correct/test-catalog.xml
Created 16 Dec 2021 by SP
Updated 30 Dec 2021 by MSM
remove trailing whitespace from input
Updated 01 Jan 2022 by MSM
stripped non-significant whitespace from result
Input string (9 characters)
pi+(10×b)
Expected result
<expression>
<sum>
<id name="pi"/>
<bracketed>
<prod>
<number value="10"/>
<id name="b"/>
</prod>
</bracketed>
</sum>
</expression>