Skip to content

Commit d87a75c

Browse files
authored
Rename :math tests as :offset tests (#1087)
1 parent 45b7e41 commit d87a75c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
11
{
22
"$schema": "../../schemas/v0/tests.schema.json",
3-
"scenario": "Math function",
3+
"scenario": "Offset function",
44
"description": "The built-in formatter and selector for addition and subtraction.",
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
77
"locale": "en-US"
88
},
99
"tests": [
1010
{
11-
"src": "{:math add=13}",
11+
"src": "{:offset add=13}",
1212
"expErrors": [{ "type": "bad-operand" }]
1313
},
1414
{
15-
"src": "{foo :math add=13}",
15+
"src": "{foo :offset add=13}",
1616
"expErrors": [{ "type": "bad-operand" }]
1717
},
1818
{
19-
"src": "{42 :math}",
19+
"src": "{42 :offset}",
2020
"expErrors": [{ "type": "bad-option" }]
2121
},
2222
{
23-
"src": "{42 :math add=foo}",
23+
"src": "{42 :offset add=foo}",
2424
"expErrors": [{ "type": "bad-option" }]
2525
},
2626
{
27-
"src": "{42 :math subtract=foo}",
27+
"src": "{42 :offset subtract=foo}",
2828
"expErrors": [{ "type": "bad-option" }]
2929
},
3030
{
31-
"src": "{42 :math foo=13}",
31+
"src": "{42 :offset foo=13}",
3232
"expErrors": [{ "type": "bad-option" }]
3333
},
3434
{
35-
"src": "{42 :math add=13 subtract=13}",
35+
"src": "{42 :offset add=13 subtract=13}",
3636
"expErrors": [{ "type": "bad-option" }]
3737
},
3838
{
39-
"src": "{41 :math add=1}",
39+
"src": "{41 :offset add=1}",
4040
"exp": "42"
4141
},
4242
{
43-
"src": "{52 :math subtract=10}",
43+
"src": "{52 :offset subtract=10}",
4444
"exp": "42"
4545
},
4646
{
47-
"src": "{41 :math add=1 foo=13}",
47+
"src": "{41 :offset add=1 foo=13}",
4848
"exp": "42"
4949
},
5050
{
51-
"src": ".local $x = {41 :integer signDisplay=always} {{{$x :math add=1}}}",
51+
"src": ".local $x = {41 :integer signDisplay=always} {{{$x :offset add=1}}}",
5252
"exp": "+42"
5353
},
5454
{
55-
"src": ".local $x = {52 :number signDisplay=always} {{{$x :math subtract=10}}}",
55+
"src": ".local $x = {52 :number signDisplay=always} {{{$x :offset subtract=10}}}",
5656
"exp": "+42"
5757
},
5858
{
59-
"src": "{$x :math add=1}",
59+
"src": "{$x :offset add=1}",
6060
"params": [{ "name": "x", "value": 41 }],
6161
"exp": "42"
6262
},
6363
{
64-
"src": "{$x :math subtract=10}",
64+
"src": "{$x :offset subtract=10}",
6565
"params": [{ "name": "x", "value": 52 }],
6666
"exp": "42"
6767
},
6868
{
69-
"src": ".local $x = {1 :math add=1} .match $x 1 {{=1}} 2 {{=2}} * {{other}}",
69+
"src": ".local $x = {1 :offset add=1} .match $x 1 {{=1}} 2 {{=2}} * {{other}}",
7070
"exp": "=2"
7171
},
7272
{
73-
"src": ".local $x = {10 :integer} .local $y = {$x :math subtract=6} .match $y 10 {{=10}} 4 {{=4}} * {{other}}",
73+
"src": ".local $x = {10 :integer} .local $y = {$x :offset subtract=6} .match $y 10 {{=10}} 4 {{=4}} * {{other}}",
7474
"exp": "=4"
7575
}
7676
]

0 commit comments

Comments
 (0)