summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-12-28 22:40:20 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-12-28 23:01:01 -0800
commitaf9d4ee133af6d1844abc520276b8bc3e4861576 (patch)
treee663c80c9de4042a12c36974e5c3573ddd2ed02e /test/irb
parentf9e80af28a6ddc59a63fe567198e9d7a3b5b80f8 (diff)
[ruby/irb] Fix failing tests
https://github.com/ruby/irb/commit/7723ade899
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_context.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index ef7e2c5..a8ff640 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -234,7 +234,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- assert_equal("=> #{value.inspect}\n", out)
+ assert_equal("=> \n#{value.pretty_inspect}", out)
input.reset
irb.context.echo = true
@@ -243,7 +243,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- assert_equal("=> #{value.inspect[0..(input.winsize.last - 9)]}...\e[0m\n=> #{value.inspect}\n", out)
+ assert_equal("=> \n#{value.pretty_inspect[0..3]}...\n=> \n#{value.pretty_inspect}", out)
input.reset
irb.context.echo = true
@@ -252,7 +252,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- assert_equal("=> #{value.inspect}\n=> #{value.inspect}\n", out)
+ assert_equal("=> \n#{value.pretty_inspect}=> \n#{value.pretty_inspect}", out)
input.reset
irb.context.echo = false