CoffeeFilter Test Report
Report generated on 29 Oct 2024 at 10:59 with version 3.2.7 from a test suite dated 23 Oct 2023 (22 Nov 2023).
Description
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.
Ambiguous inputs
01 Jun 2022 (09 May 2023)
Description
Tests provided by Steven Pemberton in December 2021, with corrections of 21 December. Reorganized by Norm Tovey-Walsh, February 2022.
css
Created 16 Dec 2021 by SP
Updated 30 Dec 2021 by MSM
stripped non-significant whitespace from result
Updated 01 Jan 2022 by MSM
supply alternate result
Invisible XML Grammar
css: S, rule+.
rule: selector, block.
block: -"{", S, property**(-";", S), -"}", S.
property: @name, S, -":", S, value; empty.
selector: name, S.
name: letter+.
-letter: ["a"-"z"; "-"].
digit: ["0"-"9"].
value: (@name; @number), S.
number: digit+.
-empty: .
-S: -[" "; #a; #d]*.
Test case: css
Repository URI: …/tests/ambiguous/test-catalog.xml
Created 16 Dec 2021 by SP
Input string (60 characters)
body { color: blue; font-weight: bold; margin: 0; }
head {}
Expected results (one of)
<!-- AMBIGUOUS
The input from line.pos 2.7 to 2.7 can be interpreted as 'property*(-";", S)' in 2 different ways:
1: property*(-";", S)[2.7:]:
2: property*(-";", S)[2.7:]: property+(-";", S)[:2.7]
--><css xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
<rule>
<selector>
<name>body</name>
</selector>
<block>
<property name="color">
<value name="blue"/>
</property>
<property name="font-weight">
<value name="bold"/>
</property>
<property name="margin">
<value number="0"/>
</property>
<property/>
</block>
</rule>
<rule>
<selector>
<name>head</name>
</selector>
<block/>
</rule>
</css>
<css xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
<rule>
<selector>
<name>body</name>
</selector>
<block>
<property name="color">
<value name="blue"/>
</property>
<property name="font-weight">
<value name="bold"/>
</property>
<property name="margin">
<value number="0"/>
</property>
<property/>
</block>
</rule>
<rule>
<selector>
<name>head</name>
</selector>
<block>
<property/>
</block>
</rule>
</css>
Test report
PASS