You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
10 months ago
|
[{
|
||
|
"given": {
|
||
|
"foo.bar": "dot",
|
||
|
"foo bar": "space",
|
||
|
"foo\nbar": "newline",
|
||
|
"foo\"bar": "doublequote",
|
||
|
"c:\\\\windows\\path": "windows",
|
||
|
"/unix/path": "unix",
|
||
|
"\"\"\"": "threequotes",
|
||
|
"bar": {"baz": "qux"}
|
||
|
},
|
||
|
"cases": [
|
||
|
{
|
||
|
"expression": "\"foo.bar\"",
|
||
|
"result": "dot"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"foo bar\"",
|
||
|
"result": "space"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"foo\\nbar\"",
|
||
|
"result": "newline"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"foo\\\"bar\"",
|
||
|
"result": "doublequote"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"c:\\\\\\\\windows\\\\path\"",
|
||
|
"result": "windows"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"/unix/path\"",
|
||
|
"result": "unix"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"\\\"\\\"\\\"\"",
|
||
|
"result": "threequotes"
|
||
|
},
|
||
|
{
|
||
|
"expression": "\"bar\".\"baz\"",
|
||
|
"result": "qux"
|
||
|
}
|
||
|
]
|
||
|
}]
|