diff options
Diffstat (limited to 'test/ruby')
| -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 bf7a2d0f9b..2a19b055be 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1110,6 +1110,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 |
