diff options
author | Sebastian Ludwig <sebastian@lurado.de> | 2016-04-26 22:11:34 +0300 |
---|---|---|
committer | Sebastian Ludwig <sebastian@lurado.de> | 2016-04-26 22:11:34 +0300 |
commit | f4cbf081225ea03c9a4610b75c90da5802cb4a1e (patch) | |
tree | 8106601721f63f3eeedbeb6342fe292eb1580084 /test | |
parent | b47ab9369bd1902a3a1d71d1a49e462edbfcd706 (diff) |
Fixed #155 by removing mapping from zh to zh-Hans in Android formatter.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_formatters.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/test_formatters.rb b/test/test_formatters.rb index 574cbec..851d514 100644 --- a/test/test_formatters.rb +++ b/test/test_formatters.rb @@ -122,7 +122,16 @@ class TestAndroidFormatter < FormatterTest end def test_output_path_language_mappings - assert_equal 'values-zh-rCN', @formatter.output_path_for_language('zh-Hans') + mappings = { + 'zh-Hans' => 'zh-rCN', + 'zh-Hant' => 'zh-rHK', + 'en-UK' => 'en-rGB', + 'id' => 'in', + 'no' => 'nb' + } + mappings.each do |lang, output_path| + assert_equal "values-#{output_path}", @formatter.output_path_for_language(lang) + end end end |