diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_m17n_comb.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb index 47a1f411c6..8069885793 100644 --- a/test/ruby/test_m17n_comb.rb +++ b/test/ruby/test_m17n_comb.rb @@ -1340,6 +1340,11 @@ class TestM17NComb < Test::Unit::TestCase end end + def test_str_succ2 + assert_equal("\x01\x00".force_encoding("US-ASCII"), "\x7f".force_encoding("US-ASCII").succ) + assert_equal("\x01\x00".b, "\xff".b.succ) + end + def test_str_hash combination(STRINGS, STRINGS) {|s1, s2| if s1.eql?(s2) |