$~ is nil after successful Array#find with regexp
-------------------------------------------------

                 Key: JRUBY-2529
                 URL: http://jira.codehaus.org/browse/JRUBY-2529
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1
         Environment: OS: Windows Vista Ultimate Service Pack 1
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
            Reporter: Gabor Kolok
            Assignee: Thomas E Enebo


require 'test/unit'

class TestArrayFind < Test::Unit::TestCase
  def test_dollar_match
    ['baba'].find {|e| e =~ /ba/}
    assert_not_nil $~ 
  end
end

Fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to