Test results for Solaris x86

test_001085_option_columns_regex_mixed

Test description

Test for elements generated from a mix of column ranges and regular expressions 
are ordered by the same order they are specified on the command line.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -C:2r 1-6 -W:2-$ '%( .*def)%' -C:2-$ 12-15 -W:2,4,6 '/.*(abc).*(def.*$)/' -t -e

Input data

line 1 abc
line 2 abc def
line 3 abc
line 4 abc def
line 5 ghi
line 6 abc

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field>line 2</field>
    <field>2 abc def</field>
    <field>def</field>
    <field>abc</field>
    <field>def</field>
  </line>
  <line>
    <field>line 4</field>
    <field>4 abc def</field>
    <field>def</field>
    <field>abc</field>
    <field>def</field>
  </line>
  <line>
    <field>line 6</field>
  </line>
</xmlfy>

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