diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_string.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 3375a8a3a3..69df6472d1 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1126,6 +1126,9 @@ class TestString < Test::Unit::TestCase assert_nil("foo".rindex(//, -100)) assert_nil($~) + + assert_equal(3, "foo".rindex(//)) + assert_equal([3, 3], $~.offset(0)) end def test_rjust |