mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (regexp): dregexp has literal string only at the head
and successors are array. [ruby-core:32682] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25eebc3ad5
commit
d3dabbca71
3 changed files with 9 additions and 1 deletions
|
|
@ -110,6 +110,8 @@ class TestRubyLiteral < Test::Unit::TestCase
|
|||
def test_dregexp
|
||||
assert_instance_of Regexp, /re#{'ge'}xp/
|
||||
assert_equal(/regexp/, /re#{'ge'}xp/)
|
||||
bug3903 = '[ruby-core:32682]'
|
||||
assert_raise(SyntaxError, bug3903) {eval('/[#{"\x80"}]/')}
|
||||
end
|
||||
|
||||
def test_array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue