Skip to content

Commit

Permalink
Add a regression test for JRUBY-1944, already fixed but still open fo…
Browse files Browse the repository at this point in the history
…r 1.0.4 (to be punted shortly).

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@6685 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed May 12, 2008
1 parent 31ded69 commit 35398df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_backref.rb
@@ -0,0 +1,12 @@
require 'test/unit'

class TestBackref < Test::Unit::TestCase
# JRUBY-1944
def test_postmatch_in_scan
"ab".scan(/a/) do |v|
v =~ /z/
end
assert_equal 'b', $'
end
end

0 comments on commit 35398df

Please sign in to comment.