|
4 | 4 | "description": "Test cases for fallback behaviour.", |
5 | 5 | "defaultTestProperties": { |
6 | 6 | "bidiIsolation": "none", |
7 | | - "locale": "en-US", |
8 | | - "expErrors": true |
| 7 | + "locale": "en-US" |
9 | 8 | }, |
10 | 9 | "tests": [ |
11 | 10 | { |
12 | 11 | "description": "function with unquoted literal operand", |
13 | 12 | "src": "{42 :test:function fails=format}", |
14 | 13 | "exp": "{|42|}", |
15 | | - "expParts": [{ "type": "fallback", "source": "|42|" }] |
| 14 | + "expParts": [{ "type": "fallback", "source": "|42|" }], |
| 15 | + "expErrors": [{ "type": "bad-option" }] |
16 | 16 | }, |
17 | 17 | { |
18 | 18 | "description": "function with quoted literal operand", |
19 | 19 | "src": "{|C:\\\\| :test:function fails=format}", |
20 | | - "exp": "{|C:\\\\|}" |
| 20 | + "exp": "{|C:\\\\|}", |
| 21 | + "expErrors": [{ "type": "bad-operand" }] |
21 | 22 | }, |
22 | 23 | { |
23 | 24 | "description": "unannotated implicit input variable", |
24 | 25 | "src": "{$var}", |
25 | | - "exp": "{$var}" |
| 26 | + "exp": "{$var}", |
| 27 | + "expErrors": [{ "type": "unresolved-variable" }] |
26 | 28 | }, |
27 | 29 | { |
28 | 30 | "description": "annotated implicit input variable", |
29 | 31 | "src": "{$var :number}", |
30 | 32 | "exp": "{$var}", |
31 | | - "expParts": [{ "type": "fallback", "source": "$var" }] |
| 33 | + "expParts": [{ "type": "fallback", "source": "$var" }], |
| 34 | + "expErrors": [{ "type": "unresolved-variable" }, { "type": "bad-operand" }] |
32 | 35 | }, |
33 | 36 | { |
34 | 37 | "description": "local variable with unknown function in declaration", |
35 | 38 | "src": ".local $var = {|val| :test:undefined} {{{$var}}}", |
36 | | - "exp": "{$var}" |
| 39 | + "exp": "{$var}", |
| 40 | + "expErrors": [{ "type": "unknown-function" }] |
37 | 41 | }, |
38 | 42 | { |
39 | 43 | "description": "function with local variable operand with unknown function in declaration", |
40 | 44 | "src": ".local $var = {|val| :test:undefined} {{{$var :test:function}}}", |
41 | | - "exp": "{$var}" |
| 45 | + "exp": "{$var}", |
| 46 | + "expErrors": [{ "type": "unknown-function" }, { "type": "bad-operand" }] |
42 | 47 | }, |
43 | 48 | { |
44 | 49 | "description": "local variable with unknown function in placeholder", |
45 | 50 | "src": ".local $var = {|val|} {{{$var :test:undefined}}}", |
46 | | - "exp": "{$var}" |
| 51 | + "exp": "{$var}", |
| 52 | + "expErrors": [{ "type": "unknown-function" }] |
47 | 53 | }, |
48 | 54 | { |
49 | 55 | "description": "function with no operand", |
50 | 56 | "src": "{:test:undefined}", |
51 | 57 | "exp": "{:test:undefined}", |
52 | | - "expParts": [{ "type": "fallback", "source": ":test:undefined" }] |
| 58 | + "expParts": [{ "type": "fallback", "source": ":test:undefined" }], |
| 59 | + "expErrors": [{ "type": "unknown-function" }] |
53 | 60 | } |
54 | 61 | ] |
55 | 62 | } |
0 commit comments