Changeset 4836


Ignore:
Timestamp:
Oct 14, 2015, 11:04:43 AM (2 years ago)
Author:
nmedfort
Message:

Few more test cases for grapheme boundaries.

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

Legend:

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

    r4591 r4836  
    2121import sys, subprocess, os, optparse, re, codecs, stat
    2222import xml.parsers.expat
     23import sys
     24import codecs
     25
     26sys.stdout = codecs.getwriter('utf8')(sys.stdout)
     27sys.stderr = codecs.getwriter('utf8')(sys.stderr)
    2328
    2429in_datafile = False
  • icGREP/icgrep-devel/QA/greptest.xml

    r4834 r4836  
    536536àŠ•à§€
    537537àŠ•àŠ•à§€
     538àŠ•à§€àŠ•à§€
     539àŠ•àŠ•à§€àŠ•àŠ•à§€àŠ•
     540àŠ•à§€àŠ•àŠ•àŠ•àŠ•à§€
    538541A plain line.
    539542</datafile>
     
    545548<grepcase regexp="^àŠ•$" datafile="codepoints" grepcount="1"/>
    546549<grepcase regexp="(?g)^àŠ•$" datafile="codepoints" grepcount="2"/>
    547 <grepcase regexp="^àŠ•+$" datafile="codepoints" grepcount="1"/>
    548 <grepcase regexp="(?g)^àŠ•+$" datafile="codepoints" grepcount="3"/> 
    549  
     550<grepcase regexp="^àŠ•$" datafile="codepoints" grepcount="1"/>
     551<grepcase regexp="(?g)^àŠ•+$" datafile="codepoints" grepcount="6"/> 
     552<grepcase regexp="^àŠ•{1,27}$" datafile="codepoints" grepcount="1"/>
     553<grepcase regexp="(?g)^àŠ•{1,27}$" datafile="codepoints" grepcount="6"/> 
     554<grepcase regexp="(^àŠ•{1,2}$)|(^àŠ•{4,6}$)" datafile="codepoints" grepcount="1"/>
     555<grepcase regexp="(?g)(^àŠ•{1,2}$)|(^àŠ•{4,6}$)" datafile="codepoints" grepcount="6"/>
     556
    550557<datafile id = "LineBreaking">CRLF1&#13;&#10;CRLF2&#13;&#10;CRLF3&#13;&#10;
    551558LS1&#x2028;LS2&#x2028;LS3&#x2028;PS1&#x2029;PS2&#x2029;PS3&#x2029;
Note: See TracChangeset for help on using the changeset viewer.