8000 In tests, use "text" rather than "literal" as the type for formatted-… · unicode-org/message-format-wg@a305837 · GitHub
[go: up one dir, main page]

Skip to content

Commit a305837

Browse files
authored
In tests, use "text" rather than "literal" as the type for formatted-parts text parts (#1060)
Use "text" rather than "literal" for message text parts
1 parent 78c689d commit a305837

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

test/schemas/v0/tests.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
"items": {
238238
"oneOf": [
239239
{
240-
"description": "Message literal part.",
240+
"description": "Message text part.",
241241
"type": "object",
242242
"additionalProperties": false,
243243
"required": [
@@ -246,7 +246,7 @@
246246
],
247247
"properties": {
248248
"type": {
249-
"const": "literal"
249+
"const": "text"
250250
},
251251
"value": {
252252
"type": "string"

test/tests/syntax.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@
644644
"name": "tag"
645645
},
646646
{
647-
"type": "literal",
647+
"type": "text",
648648
"value": "content"
649649
}
650650
]
@@ -659,7 +659,7 @@
659659
"name": "ns:tag"
660660
},
661661
{
662-
"type": "literal",
662+
"type": "text",
663663
"value": "content"
664664
},
665665
{
@@ -679,7 +679,7 @@
679679
"name": "tag"
680680
},
681681
{
682-
"type": "literal",
682+
"type": "text",
683683
"value": "content"
684684
}
685685
]

test/tests/u-options.json

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"id": "x",
1818
"name": "tag"
1919
},
20-
{
21-
"type": "literal",
22-
"value": "content"
23-
},
20+
{ "type": "text", "value": "content" },
2421
{
2522
"type": "markup",
2623
"kind": "close",
@@ -39,10 +36,7 @@
3936
"kind": "open",
4037
"name": "tag"
4138
},
42-
{
43-
"type": "literal",
44-
"value": "content"
45-
},
39+
{ "type": "text", "value": "content" },
4640
{
4741
"type": "markup",
4842
"kind": "close",
@@ -58,10 +52,7 @@
5852
"src": "hello {world :string u:dir=ltr u:id=foo}",
5953
"exp": "hello \u2066world\u2069",
6054
"expParts": [
61-
{
62-
"type": "literal",
63-
"value": "hello "
64-
},
55+
{ "type": "text", "value": "hello " },
6556
{ "type": "bidiIsolation", "value": "\u2066" },
6657
{
6758
"type": "string",
@@ -78,7 +69,7 @@
7869
"src": "hello {world :string u:dir=rtl}",
7970
"exp": "hello \u2067world\u2069",
8071
"expParts": [
81-
{ "type": "literal", "value": "hello " },
72+
{ "type": "text", "value": "hello " },
8273
{ "type": "bidiIsolation", "value": "\u2067" },
8374
{
8475
"type": "string",
@@ -94,7 +85,7 @@
9485
"src": "hello {world :string u:dir=auto}",
9586
"exp": "hello \u2068world\u2069",
9687
"expParts": [
97-
{ "type": "literal", "value": "hello " },
88+
{ "type": "text", "value": "hello " },
9889
{ "type": "bidiIsolation", "value": "\u2068" },
9990
{
10091
"type": "string",
@@ -109,10 +100,7 @@
109100
"src": ".local $world = {world :string u:dir=ltr u:id=foo} {{hello {$world}}}",
110101
"exp": "hello \u2066world\u2069",
111102
"expParts": [
112-
{
113-
"type": "literal",
114-
"value": "hello "
115-
},
103+
{ "type": "text", "value": "hello " },
116104
{ "type": "bidiIsolation", "value": "\u2066" },
117105
{
118106
"type": "string",

0 commit comments

Comments
 (0)
0