Skip to content

Commit a001103

Browse files
committed
Port parser reference tests
projectfluent/fluent#313
1 parent f41d910 commit a001103

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"body": [
3+
{
4+
"id": "bracket-inline",
5+
"value": "[Value]",
6+
"attributes": {}
7+
},
8+
{
9+
"id": "dot-inline",
10+
"value": ".Value",
11+
"attributes": {}
12+
},
13+
{
14+
"id": "star-inline",
15+
"value": "*Value",
16+
"attributes": {}
17+
}
18+
]
19+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## OK
2+
3+
bracket-inline = [Value]
4+
dot-inline = .Value
5+
star-inline = *Value
6+
7+
## ERRORS
8+
9+
bracket-newline =
10+
[Value]
11+
dot-newline =
12+
.Value
13+
star-newline =
14+
*Value
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"type": "Resource",
3+
"body": [
4+
{
5+
"type": "GroupComment",
6+
"content": "OK"
7+
},
8+
{
9+
"type": "Message",
10+
"id": {
11+
"type": "Identifier",
12+
"name": "bracket-inline"
13+
},
14+
"value": {
15+
"type": "Pattern",
16+
"elements": [
17+
{
18+
"type": "TextElement",
19+
"value": "[Value]"
20+
}
21+
]
22+
},
23+
"attributes": [],
24+
"comment": null
25+
},
26+
{
27+
"type": "Message",
28+
"id": {
29+
"type": "Identifier",
30+
"name": "dot-inline"
31+
},
32+
"value": {
33+
"type": "Pattern",
34+
"elements": [
35+
{
36+
"type": "TextElement",
37+
"value": ".Value"
38+
}
39+
]
40+
},
41+
"attributes": [],
42+
"comment": null
43+
},
44+
{
45+
"type": "Message",
46+
"id": {
47+
"type": "Identifier",
48+
"name": "star-inline"
49+
},
50+
"value": {
51+
"type": "Pattern",
52+
"elements": [
53+
{
54+
"type": "TextElement",
55+
"value": "*Value"
56+
}
57+
]
58+
},
59+
"attributes": [],
60+
"comment": null
61+
},
62+
{
63+
"type": "GroupComment",
64+
"content": "ERRORS"
65+
},
66+
{
67+
"type": "Junk",
68+
"annotations": [],
69+
"content": "bracket-newline =\n [Value]\n"
70+
},
71+
{
72+
"type": "Junk",
73+
"annotations": [],
74+
"content": "dot-newline =\n .Value\n"
75+
},
76+
{
77+
"type": "Junk",
78+
"annotations": [],
79+
"content": "star-newline =\n *Value\n"
80+
}
81+
]
82+
}

0 commit comments

Comments
 (0)