Home | History | Annotate | Download | only in testdata
      1 # These test special (mostly error) UTF features of DFA matching. They are a 
      2 # selection of the more comprehensive tests that are run for non-DFA matching.
      3 # The output is different for the different widths.
      4 
      5 #subject dfa
      6 
      7 /X/utf
      8     XX\x{d800}
      9 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     10     XX\x{d800}\=offset=3
     11 No match
     12     XX\x{d800}\=no_utf_check
     13  0: X
     14     XX\x{da00}
     15 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     16     XX\x{da00}\=no_utf_check
     17  0: X
     18     XX\x{dc00}
     19 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     20     XX\x{dc00}\=no_utf_check
     21  0: X
     22     XX\x{de00}
     23 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     24     XX\x{de00}\=no_utf_check
     25  0: X
     26     XX\x{dfff}
     27 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     28     XX\x{dfff}\=no_utf_check
     29  0: X
     30     XX\x{110000}
     31 Failed: error -28: UTF-32 error: code points greater than 0x10ffff are not defined at offset 2
     32     XX\x{d800}\x{1234}
     33 Failed: error -27: UTF-32 error: code points 0xd800-0xdfff are not defined at offset 2
     34           
     35 /badutf/utf
     36     X\xdf
     37 No match
     38     XX\xef
     39 No match
     40     XXX\xef\x80
     41 No match
     42     X\xf7
     43 No match
     44     XX\xf7\x80
     45 No match
     46     XXX\xf7\x80\x80
     47 No match
     48 
     49 /shortutf/utf
     50     XX\xdf\=ph
     51 No match
     52     XX\xef\=ph
     53 No match
     54     XX\xef\x80\=ph
     55 No match
     56     \xf7\=ph
     57 No match
     58     \xf7\x80\=ph
     59 No match
     60 
     61 # End of testinput14
     62