mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix test for previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88c0b8fec9
commit
d857a1b0d7
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class TestRegexp < Test::Unit::TestCase
|
||||||
assert_equal(/a/, eval(%q(s="\u0061";/#{s}/n)))
|
assert_equal(/a/, eval(%q(s="\u0061";/#{s}/n)))
|
||||||
assert_raise(RegexpError) { s = "\u3042"; eval(%q(/#{s}/n)) }
|
assert_raise(RegexpError) { s = "\u3042"; eval(%q(/#{s}/n)) }
|
||||||
assert_raise(RegexpError) { s = "\u0061"; eval(%q(/\u3042#{s}/n)) }
|
assert_raise(RegexpError) { s = "\u0061"; eval(%q(/\u3042#{s}/n)) }
|
||||||
assert_raise(ArgumentError) { s1=[0xff].pack("C"); s2="\u3042"; eval(%q(/#{s1}#{s2}/)) }
|
assert_raise(RegexpError) { s1=[0xff].pack("C"); s2="\u3042"; eval(%q(/#{s1}#{s2}/)) }
|
||||||
|
|
||||||
assert_raise(ArgumentError) { s = '\x'; /#{ s }/ }
|
assert_raise(ArgumentError) { s = '\x'; /#{ s }/ }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue