1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_defined.rb (TestDefined#test_defined): get rid of

ruby-mode hilighting bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-03-24 14:03:45 +00:00
parent 9de5f281cd
commit e6a4a8018d

View file

@ -66,21 +66,21 @@ class TestDefined < Test::Unit::TestCase
/a/ =~ 'a' /a/ =~ 'a'
assert_equal 'global-variable', defined?($&) assert_equal 'global-variable', defined?($&)
assert_equal 'global-variable', defined?($`) assert_equal 'global-variable', defined?($`)
assert_equal 'global-variable', defined?($') assert_equal 'global-variable', defined?($') # '
assert_equal nil, defined?($+) assert_equal nil, defined?($+)
assert_equal nil, defined?($1) assert_equal nil, defined?($1)
assert_equal nil, defined?($2) assert_equal nil, defined?($2)
/(a)/ =~ 'a' /(a)/ =~ 'a'
assert_equal 'global-variable', defined?($&) assert_equal 'global-variable', defined?($&)
assert_equal 'global-variable', defined?($`) assert_equal 'global-variable', defined?($`)
assert_equal 'global-variable', defined?($') assert_equal 'global-variable', defined?($') # '
assert_equal 'global-variable', defined?($+) assert_equal 'global-variable', defined?($+)
assert_equal 'global-variable', defined?($1) assert_equal 'global-variable', defined?($1)
assert_equal nil, defined?($2) assert_equal nil, defined?($2)
/(a)b/ =~ 'ab' /(a)b/ =~ 'ab'
assert_equal 'global-variable', defined?($&) assert_equal 'global-variable', defined?($&)
assert_equal 'global-variable', defined?($`) assert_equal 'global-variable', defined?($`)
assert_equal 'global-variable', defined?($') assert_equal 'global-variable', defined?($') # '
assert_equal 'global-variable', defined?($+) assert_equal 'global-variable', defined?($+)
assert_equal 'global-variable', defined?($1) assert_equal 'global-variable', defined?($1)
assert_equal nil, defined?($2) assert_equal nil, defined?($2)