Skip to content

Commit

Permalink
Sync with reference test fixtures to add special_chars fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
zbraniecki committed Jan 24, 2021
1 parent ebd49af commit 9807bb0
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fluent-syntax/tests/fixtures/special_chars.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## OK

bracket-inline = [Value]
dot-inline = .Value
star-inline = *Value
## ERRORS

bracket-newline =
[Value]
dot-newline =
.Value
star-newline =
*Value
82 changes: 82 additions & 0 deletions fluent-syntax/tests/fixtures/special_chars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"type": "Resource",
"body": [
{
"type": "GroupComment",
"content": "OK"
},
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "bracket-inline"
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "TextElement",
"value": "[Value]"
}
]
},
"attributes": [],
"comment": null
},
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "dot-inline"
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "TextElement",
"value": ".Value"
}
]
},
"attributes": [],
"comment": null
},
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "star-inline"
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "TextElement",
"value": "*Value"
}
]
},
"attributes": [],
"comment": null
},
{
"type": "GroupComment",
"content": "ERRORS"
},
{
"type": "Junk",
"annotations": [],
"content": "bracket-newline =\n [Value]\n"
},
{
"type": "Junk",
"annotations": [],
"content": "dot-newline =\n .Value\n"
},
{
"type": "Junk",
"annotations": [],
"content": "star-newline =\n *Value\n"
}
]
}

0 comments on commit 9807bb0

Please sign in to comment.