ruby-changes:64651
From: Takashi <ko1@a...>
Date: Tue, 29 Dec 2020 16:01:31 +0900 (JST)
Subject: [ruby-changes:64651] af9d4ee133 (master): [ruby/irb] Fix failing tests
https://git.ruby-lang.org/ruby.git/commit/?id=af9d4ee133 From af9d4ee133af6d1844abc520276b8bc3e4861576 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 28 Dec 2020 22:40:20 -0800 Subject: [ruby/irb] Fix failing tests https://github.com/ruby/irb/commit/7723ade899 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L234 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L243 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L252 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/