1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add detailed message to assert_external_string_equal

This commit is contained in:
aycabta 2021-06-23 21:00:20 +09:00
parent 298d65b1e4
commit 557b4eb4aa

View file

@ -292,7 +292,8 @@ class Reline::History::Test < Reline::TestCase
def assert_external_string_equal(expected, actual)
assert_equal(expected, actual)
assert_equal(get_default_internal_encoding, actual.encoding)
mes = "Encoding of #{actual.inspect} is expected #{get_default_internal_encoding.inspect} but #{actual.encoding}"
assert_equal(get_default_internal_encoding, actual.encoding, mes)
end
def get_default_internal_encoding