Skip to content

Commit e05ba49

Browse files
authored
Add coverage for supplementary plane code points
Fixes #2
1 parent 1dd3e3f commit e05ba49

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

tests/unicode.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,55 @@
3434
"result": true
3535
}
3636
]
37+
},
38+
{
39+
"given": {},
40+
"cases": [
41+
{
42+
"expression": "length('𝌆')",
43+
"result": 1
44+
}
45+
]
46+
},
47+
{
48+
"given": {},
49+
"cases": [
50+
{
51+
"expression": "reverse('a𝌆b')",
52+
"result": "b𝌆a"
53+
}
54+
]
55+
},
56+
{
57+
"given": {
58+
"strings": ["𝌆", "", "style", ""]
59+
},
60+
"cases": [
61+
{
62+
"expression": "sort(strings)",
63+
"result": ["", "", "style", "𝌆"]
64+
}
65+
]
66+
},
67+
{
68+
"given": {
69+
"characters": [
70+
{"character": "𝌆", "codePoint": 119558, "name": "TETRAGRAM FOR CENTRE"},
71+
{"character": "", "codePoint": 64262, "name": "LATIN SMALL LIGATURE ST"},
72+
{"character": "", "codePoint": 64256, "name": "LATIN SMALL LIGATURE FF"},
73+
{"character": "", "codePoint": 64259, "name": "LATIN SMALL LIGATURE FFI"}
74+
]
75+
},
76+
"cases": [
77+
{
78+
"expression": "sort_by(characters, &character)",
79+
"result": [
80+
{"character": "", "codePoint": 64256, "name": "LATIN SMALL LIGATURE FF"},
81+
{"character": "", "codePoint": 64259, "name": "LATIN SMALL LIGATURE FFI"},
82+
{"character": "", "codePoint": 64262, "name": "LATIN SMALL LIGATURE ST"},
83+
{"character": "𝌆", "codePoint": 119558, "name": "TETRAGRAM FOR CENTRE"}
84+
]
85+
}
86+
]
3787
}
3888
]

0 commit comments

Comments
 (0)