Skip to content

Commit 5cc1cf1

Browse files
committed
Don't test formatting zh-Hans for now (missing JSON data)
1 parent 96f9b48 commit 5cc1cf1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/locale_display_name_test.exs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ defmodule Cldr.LocaleDisplayName.Test do
6161
@except_lines @invalid_test_results ++ @results_should_be_parens ++ @wrong_language_display
6262
@locales [:en, :fr, :de, :it, :es, :zh, :"zh-Hans", :"zh-Hant", :ja]
6363

64+
# Due to data errors in generated JSON
65+
@except_format_for_locales ["hi-Latn", "zh-Hans", "zh-Hant"]
66+
6467
for [line, locale, language_display, from, to] <- Cldr.LocaleDisplayNameGenerator.data(),
65-
line not in @except_lines, from != "hi-Latn" do
68+
line not in @except_lines, from not in @except_format_for_locales do
6669
test "##{line} Locale #{inspect(from)} becomes #{inspect(to)} in locale #{inspect(locale)}" do
6770
assert Cldr.LocaleDisplay.display_name!(unquote(from),
6871
locale: unquote(locale),
@@ -74,7 +77,7 @@ defmodule Cldr.LocaleDisplayName.Test do
7477

7578
for [line, _locale, language_display, from, _to] <- Cldr.LocaleDisplayNameGenerator.data(),
7679
locale <- @locales,
77-
line not in @except_lines && locale != :und && from != "hi-Latn" do
80+
line not in @except_lines && locale != :und && from not in @except_format_for_locales do
7881
test "##{line} Language tag #{inspect(from)} in locale #{inspect(locale)} renders" do
7982
assert Cldr.LocaleDisplay.display_name!(unquote(from),
8083
locale: unquote(locale),

0 commit comments

Comments
 (0)