Skip to content

Commit b38cf83

Browse files
committed
Add tests to ensure correct order
1 parent 8f4788f commit b38cf83

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/fixtures/negotiate/filtering/available-as-range.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
[
2+
{
3+
"input": [["en-US"], ["en"]],
4+
"output": ["en"]
5+
},
6+
{
7+
"input": [["en-Latn-US"], ["en-US"]],
8+
"output": ["en-US"]
9+
},
10+
{
11+
"input": [["en-US-windows"], ["en-US"]],
12+
"output": ["en-US"]
13+
},
14+
{
15+
"input": [["fr-CA", "de-DE"], ["fr", "it", "de"]],
16+
"output": ["fr", "de"]
17+
},
18+
{
19+
"input": [["ja-JP-windows"], ["ja"]],
20+
"output": ["ja"]
21+
},
222
{
323
"input": [["en-Latn-GB", "en-Latn-IN"], ["en-IN", "en-GB"]],
424
"output": ["en-GB", "en-IN"]

tests/fixtures/negotiate/filtering/likely-subtag.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@
3434
{
3535
"input": [["sr-RU"], ["sr-Latn-RO", "sr-Cyrl"]],
3636
"output": ["sr-Latn-RO"]
37+
},
38+
{
39+
"input": [["en-CA"], ["en-ZA", "en-GB", "en-US"]],
40+
"output": ["en-US", "en-ZA", "en-GB"]
3741
}
3842
]

0 commit comments

Comments
 (0)