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.

Misc tests 2

28 Jun 2022

Grammars 21-40.

Test grammars compiled manually in 2018 and 2019, re-packaged in 2022.

Added test cases where needed and moved to ixml test collection, June 2022.

sample.grammar.30

Created 08 Feb 2022 by cmsmcq

An attempt to isolate the bug caused by the initial version of sample.grammar.03 (toy CSS grammar).

(Plan: Play code golf. Start with 03, cut the grammar down as long as we can while retaining the bug.)

Invisible XML Grammar


	name: ["a"-"z"]; ["a"-"z"].
      

Test case: g30.c01

Repository URI: …/tests/misc/misc-021-040-catalog.xml

Input string (1 character)

p

This test case illustrates one way different processors will differ in detection of ambiguity. Since formalists define grammars as having sets of production rules, formally the grammar given is just an odd way of writing the grammar "name = ['a'-'z']." The appearance of having two distinct right-hand sides is only an illusion.

On one analysis, the sentence is unambiguous, because there is only one parse tree for the sentence using the nonterminal of the grammar specified.

On another view, the sentence is ambiguous, because either the first inclusion or the second inclusion of the production rule for S will be used, and both produce the same result.

The spec allows variation, so the test suite does not take sides.

Expected results (one of)

<name xmlns:ixml="http://invisiblexml.org/NS"
       xmlns:tc="https://github.com/invisibleXML/ixml/test-catalog">p</name>
<name xmlns:ixml="http://invisiblexml.org/NS"
       xmlns:tc="https://github.com/invisibleXML/ixml/test-catalog"
       ixml:state="ambiguous">p</name>