Skip to content

Commit 3adc512

Browse files
authored
Change format of test/data-model-errors.json file (#758)
* Change format of test/data-model-errors.json file Previously, this file was not valid JSON. Added braces and updated README file accordingly. * Change format of test/data-model-errors.json file Previously, this file was not valid JSON. Replaced '['/']' with '{'/'}'. Also removed a trailing comma and corrected typo in README file.
1 parent f6fb396 commit 3adc512

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These test files are intended to be useful for testing multiple different messag
66
- `syntax-errors.json` — An array of strings that should produce a Syntax Error when parsed.
77

88
- `data-model-errors.json` - An object with string keys and arrays of strings as values,
9-
where each key is the name of an error and its value is array of strings that
9+
where each key is the name of an error and its value is an array of strings that
1010
should produce `error` when processed.
1111
Error names are defined in ["MessageFormat 2.0 Errors"](../spec/errors.md) in the spec.
1212

test/data-model-errors.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
{
22
"Variant Key Mismatch": [
33
".match {$foo :x} * * {{foo}}",
44
".match {$foo :x} {$bar :x} * {{foo}}"
@@ -23,10 +23,10 @@
2323
".local $foo = {$bar} .local $bar = {$baz} {{_}}",
2424
".local $foo = {$bar :func} .local $bar = {$baz} {{_}}",
2525
".local $foo = {42 :func opt=$foo} {{_}}",
26-
".local $foo = {42 :func opt=$bar} .local $bar = {42} {{_}}",
26+
".local $foo = {42 :func opt=$bar} .local $bar = {42} {{_}}"
2727
],
2828
"Duplicate Option Name": [
2929
"bad {:placeholder option=x option=x}",
3030
"bad {:placeholder ns:option=x ns:option=y}"
3131
]
32-
]
32+
}

0 commit comments

Comments
 (0)