diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-13 09:09:47 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-13 09:09:47 +0000 |
commit | 2ac58e689131e368a0148b05856054c0e04d7409 (patch) | |
tree | 4ce21f007c86f0c509ed804e7c876420d2b206cd /test | |
parent | 9f74ae4cf5ae8a53d0c00532f27d96e9c981f8ff (diff) | |
download | ruby-2ac58e689131e368a0148b05856054c0e04d7409.tar.gz |
* enc/iso_8859_9.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-9, by Kazuki Iijima.
* enc/iso_8859_9.c: Exclude dotless i/I with dot from case-insensitive
matching because they are not a case pair.
* test/ruby/enc/test_iso_8859.rb: Make test coverage for ISO-8859-9
a bit more complete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/enc/test_case_comprehensive.rb | 2 | ||||
-rw-r--r-- | test/ruby/enc/test_iso_8859.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/enc/test_case_comprehensive.rb b/test/ruby/enc/test_case_comprehensive.rb index 62e2121e84..40f4327e63 100644 --- a/test/ruby/enc/test_case_comprehensive.rb +++ b/test/ruby/enc/test_case_comprehensive.rb @@ -260,7 +260,7 @@ class TestComprehensiveCaseFold generate_case_mapping_tests 'ISO-8859-6' generate_case_mapping_tests 'ISO-8859-7' generate_case_mapping_tests 'ISO-8859-8' - generate_ascii_only_case_mapping_tests 'ISO-8859-9' + generate_case_mapping_tests 'ISO-8859-9' generate_case_mapping_tests 'ISO-8859-10' generate_case_mapping_tests 'ISO-8859-11' generate_case_mapping_tests 'ISO-8859-13' diff --git a/test/ruby/enc/test_iso_8859.rb b/test/ruby/enc/test_iso_8859.rb index 067c375f51..ed663be243 100644 --- a/test/ruby/enc/test_iso_8859.rb +++ b/test/ruby/enc/test_iso_8859.rb @@ -123,7 +123,7 @@ class TestISO8859 < Test::Unit::TestCase assert_match(/^[\xdfz]+$/i, "sszzsszz") assert_match(/^SS$/i, "\xdf") assert_match(/^Ss$/i, "\xdf") - ([*(0xc0..0xdc)] - [0xd7]).each do |c| + ([*(0xc0..0xde)] - [0xd7, 0xdd]).each do |c| c1 = c.chr("iso8859-9") c2 = (c + 0x20).chr("iso8859-9") assert_match(/^(#{ c1 })\1$/i, c2 + c1) |