Skip to content

Commit 21c825f

Browse files
committed
Swap out some of the tests
1 parent 9b15eed commit 21c825f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

suites/try.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"data": null
3838
},
3939
{
40-
"description": "Can promote a soft error to a hard error",
40+
"description": "Panics when the only argument is an error",
4141
"rule": { "try": { "error": "Some error" } },
4242
"error": true,
4343
"data": null
@@ -79,21 +79,21 @@
7979
"rule": {
8080
"try": [
8181
{ "error": "Some error" },
82-
{ "val": [] }
82+
{ "val": "error" }
8383
]
8484
},
85-
"result": { "error": "Some error"},
85+
"result": "Some error",
8686
"data": null
8787
},
8888
{
8989
"description": "The context switches for the try coalescing to the previous error (2)",
9090
"rule": {
9191
"try": [
9292
{ "if": [true, { "error": "Some error" }, null] },
93-
{ "val": [] }
93+
{ "val": "error" }
9494
]
9595
},
96-
"result": { "error": "Some error"},
96+
"result": "Some error",
9797
"data": null
9898
},
9999
{
@@ -102,10 +102,10 @@
102102
"try": [
103103
{ "error": "A" },
104104
{ "error": "B" },
105-
{ "val": [] }
105+
{ "val": "error" }
106106
]
107107
},
108-
"result": { "error": "B" },
108+
"result": "B",
109109
"data": null
110110
},
111111
{
@@ -117,9 +117,9 @@
117117
{ "map": [[1,2,3], {"/": [0, 0] }]},
118118
null
119119
]
120-
}, { "val": [] }]
120+
}, { "val": "error" }]
121121
},
122-
"result": { "error": "NaN" },
122+
"result": "NaN",
123123
"data": null
124124
},
125125
"# Not Proposed",

0 commit comments

Comments
 (0)