@@ -6,10 +6,25 @@ defmodule Cldr.LocaleDisplayName.Test do
66
77 # These tests have issues:
88 # * 1566, 1569, 1686, 1699 seem to have the icorrect test result in the data
9- # * 330 and 331 appear to have the wrong timezone returned
9+ # * 344, 345 appear to have the wrong timezone returned
1010 # * 21,41 includes a field for a -u- tag that is invalid
11+ @ invalid_test_results [ 21 , 41 , 344 , 345 , 1556 , 1569 , 1686 , 1699 ]
1112
12- @ except_lines [ 21 , 41 , 1556 , 1569 , 1686 , 1699 ]
13+ # These have test results with [] but I think they should remain ()
14+ # since there are no subtags or extensions.
15+ @ results_should_be_parens [
16+ 396 , 474 , 500 , 786 , 864 , 942 , 1124 , 1203 , 1254 , 1358 , 1384 , 1538 , 1928 , 2008 ,
17+ 2188 , 2214 , 2242 , 2254 , 2268 , 2294 , 2500 , 2554 , 2580 , 2684 , 2708 , 2942 , 2968 ,
18+ 2994 , 3020 , 3022 , 3126 , 3152 , 3178
19+ ]
20+
21+ # The test results for these are what would be generated with
22+ # language_display: :standard, but the test specifies language_tag: :dialect
23+ @ wrong_language_display [
24+ 2370 , 2374 , 2375 , 2371
25+ ]
26+
27+ @ except_lines @ invalid_test_results ++ @ results_should_be_parens ++ @ wrong_language_display
1328 @ locales [ :en , :fr , :de , :it , :es , :zh , :"zh-Hans" , :"zh-Hant" , :ja ]
1429
1530 for [ line , locale , language_display , from , to ] <- Cldr.LocaleDisplayNameGenerator . data ( ) , line not in @ except_lines do
0 commit comments