mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add an assertion message to test of Readline's class variables
This commit is contained in:
parent
1e65196b54
commit
07e7ae9ed7
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ class TestReadline < Test::Unit::TestCase
|
|||
Readline.send((method_name + "=").to_sym, e)
|
||||
res = Readline.send(method_name.to_sym)
|
||||
assert_equal(e, res)
|
||||
assert_equal(enc, res.encoding)
|
||||
assert_equal(enc, res.encoding, "Readline.#{method_name} should be #{enc.name}")
|
||||
end
|
||||
ensure
|
||||
Readline.send((method_name + "=").to_sym, saved) if saved
|
||||
|
|
Loading…
Reference in a new issue