Debian Codegraph @

tests/yaml/before_begmidword.yaml

raw symbols SCIP
1 # FIXME: This test demonstrated a bug that has been fixed now. The
2 # comments are not accurate anymore. Test should probably be removed.
3
4 # -------------------------------------------------------------------
5
6 # This test case illustrates a bug with the before opcode. When we
7 # have more than 19 class definitions a before rule is triggered that
8 # should not match. In the following scenario the `begmidword lande`
9 # rule should only trigger when 'lande' is before a 'u'. If one class
10 # definition is removed as in the second test then the correct rules
11 # are triggered.
12 display: tables/unicode.dis
13 table: |
14 include tables/de-chardefs6.cti
15 attribute foo zz
16 attribute a a
17 attribute b b
18 attribute c c
19 attribute d d
20 attribute e e
21 attribute er er
22 attribute f f
23 attribute h h
24 attribute g g
25 attribute i i
26 attribute j j
27 attribute k k
28 attribute l l
29 attribute m m
30 attribute n n
31 attribute r r
32 attribute s s
33 attribute t t
34 attribute u u
35 begmidword an 235
36 always en 14
37 before u begmidword lande 123-235-145-15
38
39 tests:
40 # the only rules that should match here are the begmidword an and
41 # the always en rule. The rule `before u begmidword lande` shouldn't
42 # match but for some reason it does
43 - [landend, ⠇⠖⠙⠉⠙]
44
45 # if we remove one of the class definitions then the correct rules
46 # match
47 table: |
48 include tables/de-chardefs6.cti
49 attribute a a
50 attribute b b
51 attribute c c
52 attribute d d
53 attribute e e
54 attribute er er
55 attribute f f
56 attribute h h
57 attribute g g
58 attribute i i
59 attribute j j
60 attribute k k
61 attribute l l
62 attribute m m
63 attribute n n
64 attribute r r
65 attribute s s
66 attribute t t
67 attribute u u
68 begmidword an 235
69 always en 14
70 before u begmidword lande 123-235-145-15
71
72 tests:
73 - [landend, ⠇⠖⠙⠉⠙]
74
75 # it looks like it doesn't matter which class definition we remove
76 # match, as long as we remove one
77 table: |
78 include tables/de-chardefs6.cti
79 attribute foo zz
80 attribute b b
81 attribute c c
82 attribute d d
83 attribute e e
84 attribute er er
85 attribute f f
86 attribute h h
87 attribute g g
88 attribute i i
89 attribute j j
90 attribute k k
91 attribute l l
92 attribute m m
93 attribute n n
94 attribute r r
95 attribute s s
96 attribute t t
97 attribute u u
98 begmidword an 235
99 always en 14
100 before u begmidword lande 123-235-145-15
101
102 tests:
103 - [landend, ⠇⠖⠙⠉⠙]
104
105 # same story with a different word. What should match are the rules
106 # `always en`, `begmidword be` and `syllable stärk`. The rule
107 # `before u begmidword stärke` should not match at all. Again this
108 # seems to depend on the number of classes defined
109 table: |
110 include tables/de-chardefs6.cti
111 attribute foo zz
112 attribute a a
113 attribute b b
114 attribute c c
115 attribute d d
116 attribute e e
117 attribute er er
118 attribute f f
119 attribute h h
120 attribute g g
121 attribute i i
122 attribute j j
123 attribute k k
124 attribute l l
125 attribute m m
126 attribute n n
127 attribute r r
128 attribute s s
129 attribute t t
130 attribute u u
131 always en 14
132 begmidword be 23
133 syllable stärk 23456-345-1235-13
134 before u begmidword stärke 23456-345-1235-13-15
135
136 tests:
137 - [bestärkend, ⠆⠾⠜⠗⠅⠉⠙]
138
139 # If we remove a class then the translation is correct
140 table: |
141 include tables/de-chardefs6.cti
142 attribute a a
143 attribute b b
144 attribute c c
145 attribute d d
146 attribute e e
147 attribute er er
148 attribute f f
149 attribute h h
150 attribute g g
151 attribute i i
152 attribute j j
153 attribute k k
154 attribute l l
155 attribute m m
156 attribute n n
157 attribute r r
158 attribute s s
159 attribute t t
160 attribute u u
161 always en 14
162 begmidword be 23
163 syllable stärk 23456-345-1235-13
164 before u begmidword stärke 23456-345-1235-13-15
165
166 tests:
167 - [bestärkend, ⠆⠾⠜⠗⠅⠉⠙]