From 557b4eb4aa83f60eacfaae3f5054d78dcc57d1b6 Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 23 Jun 2021 21:00:20 +0900 Subject: [PATCH] Add detailed message to assert_external_string_equal --- test/reline/test_history.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/reline/test_history.rb b/test/reline/test_history.rb index 2426d991d3..53360409bc 100644 --- a/test/reline/test_history.rb +++ b/test/reline/test_history.rb @@ -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