• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    XX\x{d800}\=offset=3
10    XX\x{d800}\=no_utf_check
11    XX\x{da00}
12    XX\x{da00}\=no_utf_check
13    XX\x{dc00}
14    XX\x{dc00}\=no_utf_check
15    XX\x{de00}
16    XX\x{de00}\=no_utf_check
17    XX\x{dfff}
18    XX\x{dfff}\=no_utf_check
19    XX\x{110000}
20    XX\x{d800}\x{1234}
21
22/badutf/utf
23    X\xdf
24    XX\xef
25    XXX\xef\x80
26    X\xf7
27    XX\xf7\x80
28    XXX\xf7\x80\x80
29
30/shortutf/utf
31    XX\xdf\=ph
32    XX\xef\=ph
33    XX\xef\x80\=ph
34    \xf7\=ph
35    \xf7\x80\=ph
36
37# End of testinput14
38