Added to_locale() tests for 3-char language codes.

This commit is contained in:
Claude Paroz 2021-03-22 06:54:26 +01:00 committed by Mariusz Felisiak
parent 41e6b2a3c5
commit 9d130920e6
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ class TranslationTests(SimpleTestCase):
# With > 2 characters after the dash.
('sr-latn', 'sr_Latn'),
('sr-LATN', 'sr_Latn'),
# 3-char language codes.
('ber-MA', 'ber_MA'),
('BER-MA', 'ber_MA'),
# With private use subtag (x-informal).
('nl-nl-x-informal', 'nl_NL-x-informal'),
('NL-NL-X-INFORMAL', 'nl_NL-x-informal'),