Skip to content

Commit

Permalink
Reference tests for patterns starting with special chars (projectflue…
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm authored Aug 14, 2020
1 parent 7282b86 commit 1478add
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/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 test/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 1478add

Please sign in to comment.