Sha256: 7ef01d4187830ca27bb006c0257badf491c27029bbcce55598c1fcc4173af873
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
require 'test/unit' require 'gettext/cgi' class TestGetTextCGI < Test::Unit::TestCase def test_locale_normalize assert_equal("ja_JP", Locale.normalize("ja_JP")) assert_equal("ja", Locale.normalize("ja,en-us;q=0.7,en;q=0.3")) assert_equal("en_US", Locale.normalize("en-us,ja;q=0.7,en;q=0.3")) assert_equal("ja_JP", Locale.normalize("ja-jp")) assert_equal("ja", Locale.normalize("ja")) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gettext-1.1.1-mswin32 | test/gettext_test_cgi.rb |
gettext-1.1.0-mswin32 | test/gettext_test_cgi.rb |
gettext-1.1.1 | test/gettext_test_cgi.rb |
gettext-1.1.0 | test/gettext_test_cgi.rb |