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:
parent
9de5f281cd
commit
e6a4a8018d
1 changed files with 3 additions and 3 deletions
|
@ -66,21 +66,21 @@ class TestDefined < Test::Unit::TestCase
|
|||
/a/ =~ 'a'
|
||||
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?($1)
|
||||
assert_equal nil, defined?($2)
|
||||
/(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?($1)
|
||||
assert_equal nil, defined?($2)
|
||||
/(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?($1)
|
||||
assert_equal nil, defined?($2)
|
||||
|
|
Loading…
Reference in a new issue