Debian Codegraph @

tests/yaml/multipass.yaml

raw symbols SCIP
1 # A back translation attribute rule at the start of a string is incorrectly resolved
2 table: |
3 include tables/en-chardefs.cti
4 nofor pass2 $l @123456
5 flags: {testmode: backward}
6 tests:
7 - - foo
8 - ===
9
10 # Back translation using pass rules that match characters wasn't working
11 table: |
12 include tables/en-chardefs.cti
13 nofor pass2 @123456 @135-135
14 flags: {testmode: backward}
15 tests:
16 - - f=
17 - foo
18
19 # Forward translation using pass rules that have characters wasn't working
20 table: |
21 include tables/en-chardefs.cti
22 noback context "oo" @123456
23 flags: {testmode: forward}
24 tests:
25 - - foo
26 - f=
27
28 # A context rule with characters needs to be treated as a translation rule
29 table: |
30 include tables/en-chardefs.cti
31 always oo 136
32 noback context "o" @123456
33 flags: {testmode: forward}
34 tests:
35 - - foo
36 - fu
37
38 # A multipass test should fail if _ goes negative
39 table: |
40 include tables/en-chardefs.cti
41 nofor correct _["fu"] "oo"
42 flags: {testmode: backward}
43 tests:
44 - - fu
45 - foo
46
47 # Converted from pass2.c
48 table: |
49 lowercase e 15
50 lowercase n 1345
51 lowercase r 1235
52 lowercase o 135
53 lowercase x 1346
54 base uppercase E e
55 base uppercase N n
56 base uppercase R r
57 base uppercase O o
58 base uppercase X x
59 punctuation ' 6
60 noback pass2 @135 @6-135
61 noback pass2 @1346 ?
62 tests:
63 # First check a plain word to see if the table works
64 - [Rene, rene]
65 # then try a word which uses pass2
66 - [Reno, "ren'o"]