Skip to content

Commit 1413023

Browse files
committed
squash! Add tests specific to this change
1 parent 7fb5b23 commit 1413023

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed

test/fixtures/junk.ftl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1+
## Two adjacent Junks.
2+
err01 = {1x}
3+
err02 = {2x}
4+
5+
# A single Junk.
6+
err03 = {1x
7+
2
8+
9+
# A single Junk.
110
ą=Invalid identifier
211
ć=Another one
312
4-
key01 = {
13+
# The COMMENT ends this junk.
14+
err04 = {
15+
# COMMENT
16+
17+
# The COMMENT ends this junk.
18+
# The closing brace is a separate Junk.
19+
err04 = {
20+
# COMMENT
21+
}

test/fixtures/junk.json

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,68 @@
11
{
22
"type": "Resource",
33
"body": [
4+
{
5+
"type": "GroupComment",
6+
"content": "Two adjacent Junks."
7+
},
8+
{
9+
"type": "Junk",
10+
"annotations": [],
11+
"content": "err01 = {1x}\n"
12+
},
13+
{
14+
"type": "Junk",
15+
"annotations": [],
16+
"content": "err02 = {2x}\n\n"
17+
},
18+
{
19+
"type": "Comment",
20+
"content": "A single Junk."
21+
},
22+
{
23+
"type": "Junk",
24+
"annotations": [],
25+
"content": "err03 = {1x\n2\n\n"
26+
},
27+
{
28+
"type": "Comment",
29+
"content": "A single Junk."
30+
},
431
{
532
"type": "Junk",
633
"annotations": [],
734
"content": "ą=Invalid identifier\nć=Another one\n\n"
835
},
36+
{
37+
"type": "Comment",
38+
"content": "The COMMENT ends this junk."
39+
},
40+
{
41+
"type": "Junk",
42+
"annotations": [],
43+
"content": "err04 = {\n"
44+
},
45+
{
46+
"type": "Comment",
47+
"content": "COMMENT"
48+
},
49+
{
50+
"type": "Comment",
51+
"content": "The COMMENT ends this junk.\nThe closing brace is a separate Junk."
52+
},
53+
{
54+
"type": "Junk",
55+
"annotations": [],
56+
"content": "err04 = {\n"
57+
},
58+
{
59+
"type": "Comment",
60+
"content": "COMMENT"
61+
},
962
{
1063
"type": "Junk",
1164
"annotations": [],
12-
"content": "key01 = {\n"
65+
"content": "}\n"
1366
}
1467
]
1568
}

0 commit comments

Comments
 (0)