Ignore:
Timestamp:
Sep 1, 2014, 12:07:49 PM (5 years ago)
Author:
cameron
Message:

Update greptest.py to generate UTF-8 test files; add some CRLF and Unicode tests/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/QA/greptest.xml

    r4087 r4119  
    114114<grepcase regexp="[^-]" datafile="special_characters" grepcount="14"/>
    115115<grepcase regexp="[^]-]" datafile="special_characters" grepcount="13"/>
     116
     117<datafile id = "CRLF">line with CRLF &#13;&#10;two lines with LFCR &#10;&#13;final line
     118</datafile>
     119 <grepcase regexp="^$" datafile="CRLF" grepcount="1"/>
     120 <grepcase regexp="^.*$" datafile="CRLF" grepcount="4"/>
     121
     122 <datafile id = "LU_test">
     123The following line has LATIN CAPITAL LETTER G WITH MACRON in single quotes.
     124'&#x1E20;'
     125</datafile>
     126<!-- . should match a unique character, even if it is 3 bytes. -->
     127<grepcase regexp="'.'" datafile="LU_test" grepcount="1"/>
     128<grepcase regexp="'...'" datafile="LU_test" grepcount="0"/>
     129<grepcase regexp="\u{1e20}" datafile="LU_test" grepcount="1"/>
     130<grepcase regexp="\u{1e21}" datafile="LU_test" grepcount="0"/>
     131<grepcase regexp="\p{Lu}" datafile="LU_test" grepcount="2"/>
     132<grepcase regexp="'\p{Lu}'" datafile="LU_test" grepcount="1"/>
     133<grepcase regexp="\p{Ll}" datafile="LU_test" grepcount="1"/>
    116134</greptest>
    117 
    118 
Note: See TracChangeset for help on using the changeset viewer.