Skip to content

Commit 3bcbe26

Browse files
catamorphismaphillipseemeli
committed
Separate data model errors from syntax errors (unicode-org#708)
* Separate data model errors from syntax errors Split out data model errors into their own file and label tests according to the error name from the spec. No new test cases are added/removed. * Reformat data model error test file * Update test/syntax-errors.json Co-authored-by: Eemeli Aro <eemeli@gmail.com> * Update test/README.md Co-authored-by: Eemeli Aro <eemeli@gmail.com> --------- Co-authored-by: Addison Phillips <addisonI18N@gmail.com> Co-authored-by: Eemeli Aro <eemeli@gmail.com>
1 parent abc97d2 commit 3bcbe26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test-functions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"src": "{horse :date}",
66
"exp": "{|horse|}",
7-
"errors": [{ "name": "RangeError" }]
7+
"errors": [{ "name": "bad-input" }]
88
},
99
{ "src": "{|2006-01-02| :date}", "exp": "1/2/06" },
1010
{ "src": "{|2006-01-02T15:04:06| :date}", "exp": "1/2/06" },
@@ -23,7 +23,7 @@
2323
{
2424
"src": "{horse :time}",
2525
"exp": "{|horse|}",
26-
"errors": [{ "name": "RangeError" }]
26+
"errors": [{ "name": "bad-input" }]
2727
},
2828
{ "src": "{|2006-01-02T15:04:06| :time}", "exp": "3:04 PM" },
2929
{

0 commit comments

Comments
 (0)