Skip to content

Commit 547fdb4

Browse files
committed
1 parent 0119c17 commit 547fdb4

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

testdata/message2/normalization.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"tests": [
99
{
10-
"description": "NFC: literals are not normalized",
10+
"description": "NFC: text is not normalized",
1111
"src": "\u1E0A\u0323",
1212
"exp": "\u1E0A\u0323"
1313
},
@@ -35,13 +35,23 @@
3535
},
3636
{
3737
"description": "NFC: keys are normalized",
38+
"src": ".local $x = {\u1E0C\u0307 :string} .match {$x} \u1E0A\u0323 {{Right}} * {{Wrong}}",
39+
"exp": "Right"
40+
},
41+
{
42+
"description": "NFC: keys are normalized (unquoted)",
3843
"src": ".local $x = {\u1E0A\u0323 :string} .match {$x} \u1E0A\u0323 {{Not normalized}} \u1E0C\u0307 {{Normalized}} * {{Wrong}}",
3944
"expErrors": [{"type": "duplicate-variant"}]
4045
},
4146
{
42-
"description": "NFC: keys are normalized",
43-
"src": ".local $x = {\u1E0A\u0323 :string} .match {$x} \u1E0C\u0307 {{Right}} * {{Wrong}}",
44-
"exp": "Right"
47+
"description": "NFC: keys are normalized (quoted)",
48+
"src": ".local $x = {\u1E0A\u0323 :string} .match {$x} |\u1E0A\u0323| {{Not normalized}} |\u1E0C\u0307| {{Normalized}} * {{Wrong}}",
49+
"expErrors": [{"type": "duplicate-variant"}]
50+
},
51+
{
52+
"description": "NFC: keys are normalized (mixed)",
53+
"src": ".local $x = {\u1E0A\u0323 :string} .match {$x} \u1E0A\u0323 {{Not normalized}} |\u1E0C\u0307| {{Normalized}} * {{Wrong}}",
54+
"expErrors": [{"type": "duplicate-variant"}]
4555
}
4656
]
4757
}

0 commit comments

Comments
 (0)