diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-16 01:24:03 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-16 01:24:03 +0000 |
commit | f055bf9351fd2044e32c7c0cc307c80427e43834 (patch) | |
tree | 1ced89fb677d813b33a1b30db54d141934c88299 /test | |
parent | d6d832840ab48e8097234b657964a2196e18415a (diff) | |
download | ruby-f055bf9351fd2044e32c7c0cc307c80427e43834.tar.gz |
* string.c, enc/unicode.c: New code path as a preparation for Unicode-wide
case mapping. The code path is currently guarded by the :lithuanian
option to avoid accidental problems in daily use.
* test/ruby/enc/test_case_mapping.rb: Test for above.
* string.c: function 'check_case_options': fixed logical errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/enc/test_case_mapping.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/enc/test_case_mapping.rb b/test/ruby/enc/test_case_mapping.rb new file mode 100644 index 0000000000..529e86fbaa --- /dev/null +++ b/test/ruby/enc/test_case_mapping.rb @@ -0,0 +1,11 @@ +# Copyright © 2016 Kimihito Matsui (松井 仁人) and Martin J. Dürst (duerst@it.aoyama.ac.jp) + +require "test/unit" + +# preliminary tests, using :lithuanian as a guard +# to test new implementation strategy +class TestCaseMappingPreliminary < Test::Unit::TestCase + def test_case_mapping_preliminary + assert_equal "yukihiro matsumoto (matz)", "Yukihiro MATSUMOTO (MATZ)".downcase(:lithuanian) + end +end |