mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Revert r61192 and r61193
* More general fix coming. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f356bd817c
commit
cf4d4c32f3
3 changed files with 11 additions and 14 deletions
|
@ -667,11 +667,7 @@ class TestRegexp < Test::Unit::TestCase
|
|||
key = "\u{3042}"
|
||||
[Encoding::UTF_8, Encoding::Shift_JIS, Encoding::EUC_JP].each do |enc|
|
||||
idx = key.encode(enc)
|
||||
test.call {|m|
|
||||
EnvUtil.with_default_external(enc) do
|
||||
assert_raise_with_message(IndexError, /#{idx}/, bug10877) {m[idx]}
|
||||
end
|
||||
}
|
||||
test.call {|m| assert_raise_with_message(IndexError, /#{idx}/, bug10877) {m[idx]} }
|
||||
end
|
||||
test.call {|m| assert_equal(/a/, m.regexp) }
|
||||
test.call {|m| assert_equal("abc", m.string) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue