1
0
Fork 0
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:
aycabta 2019-05-14 05:34:20 +09:00
parent 1e65196b54
commit 07e7ae9ed7

View file

@ -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