Add an assertion message to test of Readline's class variables
This commit is contained in:
parent
1e65196b54
commit
07e7ae9ed7
@ -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…
x
Reference in New Issue
Block a user