Test results for Solaris x86

test_005010_delimiter_in_delimiter

Test description

Test for delimiter handling when delimiter strings are also present
in larger delimiter strings. The larger delimiter strings should be
matched before the smaller delimiter strings.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -F1 aa -F1 aaaa -F1 aaa -A delimiter

Input data

zz zzz zzzz aaa ccc cc aaaa ddd dd aa eee ee

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line delimiter="aaa">
    <field delimiter="WHITESPACE">zz</field>
    <field delimiter="WHITESPACE">zzz</field>
    <field delimiter="WHITESPACE">zzzz</field>
  </line>
  <line delimiter="aaaa">
    <field delimiter="WHITESPACE">ccc</field>
    <field delimiter="WHITESPACE">cc</field>
  </line>
  <line delimiter="aa">
    <field delimiter="WHITESPACE">ddd</field>
    <field delimiter="WHITESPACE">dd</field>
  </line>
  <line delimiter="">
    <field delimiter="WHITESPACE">eee</field>
    <field delimiter="WHITESPACE">ee</field>
  </line>
</xmlfy>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".