CoffeeFilter Test Report

Report generated on 24 Aug 2023 at 18:32 with version 3.2.1 from a test suite dated 21 Jun 2022 (20 Jun 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.

expr0

Created 16 Dec 2021 by SP

Invisible XML Grammar
{expr: operand+operator.
operand: id; number.
-id: @name.
name: letter+.
-number: @value.
value: digit+.
letter: ["a"-"z"].
digit: ["0"-"9"].
operator: "+"; "-"; "×"; "÷".
                             }
expr: id; number; expr, operator, expr.
id: ["a"-"z"]+.
number: ["0"-"9"]+.
operator: "+"; "-"; "×"; "÷".

Test case: expr0

Repository URI: …/tests/ambiguous/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

Updated 01 Jan 2022 by MSM

supplied alternate result

Input string (5 characters)
a÷b÷c
Expected results (one of)
<!-- AMBIGUOUS
     The input from line.pos 1.1 to 1.8 can be interpreted as 'expr' in 2 different ways:
     1: expr[1.1:]:  expr[:1.2] operator[:1.4] expr[:1.8] 
     2: expr[1.1:]:  expr[:1.5] operator[:1.7] expr[:1.8] 
--><expr xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
   <expr>
      <id>a</id>
   </expr>
   <operator>÷</operator>
   <expr>
      <expr>
         <id>b</id>
      </expr>
      <operator>÷</operator>
      <expr>
         <id>c</id>
      </expr>
   </expr>
</expr>
<!-- AMBIGUOUS
     The input from line.pos 1.1 to 1.8 can be interpreted as 'expr' in 2 different ways:
     1: expr[1.1:]:  expr[:1.2] operator[:1.4] expr[:1.8] 
     2: expr[1.1:]:  expr[:1.5] operator[:1.7] expr[:1.8] 
--><expr xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
   <expr>
      <expr>
         <id>a</id>
      </expr>
      <operator>÷</operator>
      <expr>
         <id>b</id>
      </expr>
   </expr>
   <operator>÷</operator>
   <expr>
      <id>c</id>
   </expr>
</expr>

Test report

PASS