Changeset 4338


Ignore:
Timestamp:
Dec 12, 2014, 1:44:56 PM (5 years ago)
Author:
cameron
Message:

Test cases that demonstrate bug fixes with r4337

Location:
icGREP/icgrep-devel/QA
Files:
2 edited

Legend:

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

    r4187 r4338  
    8383                    print "Doing: " + grep_cmd
    8484                try:
    85                     grep_out = subprocess.check_output(grep_cmd, cwd=options.exec_dir, shell=True)
     85                    grep_out = subprocess.check_output(grep_cmd.encode('utf-8'), cwd=options.exec_dir, shell=True)
    8686                except subprocess.CalledProcessError, e:
    8787                    grep_out = e.output
  • icGREP/icgrep-devel/QA/greptest.xml

    r4306 r4338  
    380380<grepcase regexp="=[a-z]{5,15};" datafile="bounded_charclass" grepcount="11"/>
    381381<grepcase regexp="(([wxy]{2}){3}){2}" datafile="bounded_charclass" grepcount="3"/>
     382<grepcase regexp="(([wxy]{2}?){3}?){2}?" datafile="bounded_charclass" grepcount="3"/>
    382383<grepcase regexp="=([a-z][c-z])*;" datafile="bounded_charclass" grepcount="12"/>
    383384<grepcase regexp="[\u0061-\u007A]{6}" datafile="bounded_charclass" grepcount="21"/>
     
    393394<grepcase regexp="Na?t" datafile="RangeAltSeqMatchStarKplusWhileNotOptAny" grepcount="2"/>
    394395<grepcase regexp="h.t" datafile="RangeAltSeqMatchStarKplusWhileNotOptAny" grepcount="3" />
     396<grepcase regexp="do*?c|ez*?t" datafile="RangeAltSeqMatchStarKplusWhileNotOptAny" grepcount="4"/>
    395397
    396398<grepcase regexp="[]]" datafile="special_characters" grepcount="9"/>
     
    422424<grepcase regexp="'\p{Lu}'" datafile="LU_test" grepcount="1"/>
    423425<grepcase regexp="\p{Ll}" datafile="LU_test" grepcount="1"/>
     426
     427
     428 <datafile id="codepoints">
     429 A line with 0x89 &#x89;
     430 A line with 0x1234 &#x1234;
     431 A line with 0x1245 &#x1245;
     432 äœ 
     433 å¥œ
     434 A plain line.
     435 </datafile>
     436 <grepcase regexp="[\u{1234}-\u{1245}]" datafile="codepoints" grepcount="2"/>
     437 <grepcase regexp="[\u{086}-\u{9A}]" datafile="codepoints" grepcount="1"/>
     438 <grepcase regexp="[䜠奜]" datafile="codepoints" grepcount="2"/>
     439 <grepcase regexp="\u{4F60}" datafile="codepoints" grepcount="1"/>
    424440</greptest>
Note: See TracChangeset for help on using the changeset viewer.