Commit 0d605e7
test: Widen the braille specs from Danish to 102 upstream specs
Runs liblouis's own expectations for roughly 60 languages through the
wrapper instead of only Danish. 102 specs, all passing.
Five things the reader did not model, each found by specs failing rather
than by reading the format:
- a test entry can lead with a description, [label, input, expected]
- a translation table can be written inline as a block scalar, not just
named. nemeth.yaml failed 133 of 133 on this alone
- so can a display table, for the same reason
- a table can be named by file rather than by query, in which case it
must not go through lou_findTable
- typeform, mode, inputPos, outputPos and cursorPos change what the
expected output means, so those cases are counted and dropped rather
than run against the wrong expectation
The counting is the point: BrailleSpec.SkippedConstructs records what was
recognised but not driven, so coverage that is not happening stays
visible. Anything outside that list still throws.
Each spec runs on a thread with a large stack. Compiling a table can
recurse deeply - ancient-languages-borger.utb needs between 640KB and
768KB, more than the test host gives a test - and a stack overflow kills
the process rather than failing a test. It is compilation, not
translation: once a table list is compiled, translating through it runs
in 128KB. Nothing about the input matters, and liblouis caches compiled
tables process wide, so without a large stack somewhere the outcome
depends on which test compiled a table first.
40 specs are held back with their reasons written down in the README. 29
of them fail on table resolution and are probably one root cause rather
than 29.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 2bedeed commit 0d605e7
102 files changed
Lines changed: 123482 additions & 48 deletions
File tree
- LibLouis.NET.Test
- braille-specs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| |||
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
75 | | - | |
| 88 | + | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
116 | | - | |
| 130 | + | |
117 | 131 | | |
118 | 132 | | |
119 | 133 | | |
120 | | - | |
| 134 | + | |
121 | 135 | | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
125 | 139 | | |
126 | | - | |
127 | | - | |
| 140 | + | |
| 141 | + | |
128 | 142 | | |
129 | | - | |
130 | 143 | | |
131 | 144 | | |
132 | | - | |
| 145 | + | |
133 | 146 | | |
134 | 147 | | |
135 | 148 | | |
| |||
169 | 182 | | |
170 | 183 | | |
171 | 184 | | |
172 | | - | |
| 185 | + | |
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
| |||
185 | 198 | | |
186 | 199 | | |
187 | 200 | | |
188 | | - | |
| 201 | + | |
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
192 | 205 | | |
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
196 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
200 | 218 | | |
| 219 | + | |
201 | 220 | | |
202 | 221 | | |
203 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
204 | 229 | | |
205 | 230 | | |
206 | 231 | | |
207 | 232 | | |
208 | 233 | | |
209 | 234 | | |
210 | | - | |
| 235 | + | |
| 236 | + | |
211 | 237 | | |
212 | 238 | | |
213 | 239 | | |
| |||
216 | 242 | | |
217 | 243 | | |
218 | 244 | | |
219 | | - | |
220 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
221 | 262 | | |
222 | 263 | | |
223 | 264 | | |
224 | | - | |
225 | 265 | | |
226 | 266 | | |
227 | 267 | | |
228 | | - | |
| 268 | + | |
229 | 269 | | |
230 | 270 | | |
231 | 271 | | |
232 | 272 | | |
233 | | - | |
| 273 | + | |
234 | 274 | | |
235 | 275 | | |
236 | 276 | | |
| |||
275 | 315 | | |
276 | 316 | | |
277 | 317 | | |
278 | | - | |
279 | | - | |
| 318 | + | |
| 319 | + | |
280 | 320 | | |
281 | 321 | | |
282 | 322 | | |
283 | 323 | | |
284 | | - | |
285 | 324 | | |
286 | 325 | | |
287 | 326 | | |
| |||
294 | 333 | | |
295 | 334 | | |
296 | 335 | | |
297 | | - | |
| 336 | + | |
298 | 337 | | |
299 | 338 | | |
300 | | - | |
301 | | - | |
302 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
303 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
304 | 350 | | |
305 | | - | |
| 351 | + | |
306 | 352 | | |
307 | 353 | | |
308 | 354 | | |
| |||
312 | 358 | | |
313 | 359 | | |
314 | 360 | | |
315 | | - | |
| 361 | + | |
316 | 362 | | |
317 | 363 | | |
318 | 364 | | |
| |||
355 | 401 | | |
356 | 402 | | |
357 | 403 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
362 | 407 | | |
363 | 408 | | |
364 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
54 | 91 | | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
58 | 95 | | |
59 | 96 | | |
60 | 97 | | |
61 | | - | |
| 98 | + | |
62 | 99 | | |
63 | 100 | | |
64 | 101 | | |
| |||
122 | 159 | | |
123 | 160 | | |
124 | 161 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
129 | 186 | | |
130 | 187 | | |
131 | 188 | | |
| |||
141 | 198 | | |
142 | 199 | | |
143 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
144 | 214 | | |
145 | 215 | | |
146 | 216 | | |
| |||
168 | 238 | | |
169 | 239 | | |
170 | 240 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
178 | 245 | | |
179 | | - | |
180 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
181 | 257 | | |
182 | 258 | | |
183 | 259 | | |
184 | | - | |
| 260 | + | |
185 | 261 | | |
186 | 262 | | |
187 | 263 | | |
| |||
0 commit comments