mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
eval_error.c: default nil as "reverse" is now false [Feature #8661]
This commit is contained in:
parent
bf11bf31e2
commit
3ef09c6e66
2 changed files with 4 additions and 6 deletions
|
@ -1156,13 +1156,11 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
|
|||
if Exception.to_tty?
|
||||
assert_match(/\e/, message)
|
||||
message = message.gsub(/\e\[[\d;]*m/, '')
|
||||
assert_operator(message, :start_with?, remark)
|
||||
assert_operator(message, :end_with?, bottom)
|
||||
else
|
||||
assert_not_match(/\e/, message)
|
||||
assert_operator(message, :start_with?, bottom)
|
||||
assert_operator(message, :end_with?, top)
|
||||
end
|
||||
assert_operator(message, :start_with?, bottom)
|
||||
assert_operator(message, :end_with?, top)
|
||||
end
|
||||
|
||||
def test_exception_in_message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue