Skip to content

Commit 3f11bcb

Browse files
committed
Issue 993: make expErrors only
1 parent 1e7cdbb commit 3f11bcb

File tree

6 files changed

+14
-24
lines changed

6 files changed

+14
-24
lines changed

test/schemas/v0/tests.schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,7 @@
382382
},
383383
"expErrors": {
384384
"description": "The runtime errors expected to be emitted when formatting the message. If expErrors is either absent or empty, the message must be formatted without errors.",
385-
"type": [
386-
"array",
387-
"boolean"
388-
],
385+
"type": "array",
389386
"items": {
390387
"type": "object",
391388
"additionalProperties": false,

test/tests/fallback.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"description": "Test cases for fallback behaviour.",
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
7-
"locale": "en-US",
8-
"expErrors": true
7+
"locale": "en-US"
98
},
109
"tests": [
1110
{

test/tests/functions/currency.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "The built-in formatter and selector for currencies.",
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
7-
"locale": "en-US"
7+
"locale": "en-US",
8+
"expErrors": []
89
},
910
"tests": [
1011
{
@@ -24,33 +25,26 @@
2425
"expErrors": [{ "type": "bad-operand" }]
2526
},
2627
{
27-
"src": "{42 :currency currency=EUR}",
28-
"expErrors": false
28+
"src": "{42 :currency currency=EUR}"
2929
},
3030
{
31-
"src": ".local $n = {42 :number} {{{$n :currency currency=EUR}}}",
32-
"expErrors": false
31+
"src": ".local $n = {42 :number} {{{$n :currency currency=EUR}}}"
3332
},
3433
{
35-
"src": ".local $n = {42 :integer} {{{$n :currency currency=EUR}}}",
36-
"expErrors": false
34+
"src": ".local $n = {42 :integer} {{{$n :currency currency=EUR}}}"
3735
},
3836
{
39-
"src": ".local $n = {42 :currency currency=EUR} {{{$n :currency}}}",
40-
"expErrors": false
37+
"src": ".local $n = {42 :currency currency=EUR} {{{$n :currency}}}"
4138
},
4239
{
43-
"src": "{42 :currency currency=EUR fractionDigits=auto}",
44-
"expErrors": false
40+
"src": "{42 :currency currency=EUR fractionDigits=auto}"
4541
},
4642
{
47-
"src": "{42 :currency currency=EUR fractionDigits=2}",
48-
"expErrors": false
43+
"src": "{42 :currency currency=EUR fractionDigits=2}"
4944
},
5045
{
5146
"src": "{$x :currency currency=EUR}",
52-
"params": [{ "name": "x", "value": 41 }],
53-
"expErrors": false
47+
"params": [{ "name": "x", "value": 41 }]
5448
},
5549
{
5650
"src": ".local $n = {42 :currency currency=EUR} .match $n * {{other}}",

test/tests/functions/date.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
77
"locale": "en-US",
8-
"expErrors": false
8+
"expErrors": []
99
},
1010
"tests": [
1111
{

test/tests/functions/datetime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
77
"locale": "en-US",
8-
"expErrors": false
8+
"expErrors": []
99
},
1010
"tests": [
1111
{

test/tests/functions/time.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"defaultTestProperties": {
66
"bidiIsolation": "none",
77
"locale": "en-US",
8-
"expErrors": false
8+
"expErrors": []
99
},
1010
"tests": [
1111
{

0 commit comments

Comments
 (0)