diff options
| author | tomoya ishida <tomoyapenguin@gmail.com> | 2024-04-18 20:48:10 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-04-18 11:48:13 +0000 |
| commit | 57a262e325580398240bb362d93c398eaab9c2eb (patch) | |
| tree | c287aa3fb07cf4a94de3bf96f57aa86388d550e5 | |
| parent | 2e978c2cb30ccd64833a5663622bccfe5bf3e8ca (diff) | |
[ruby/irb] Accept " " for colorizing "\t" test
(https://github.com/ruby/irb/pull/924)
https://github.com/ruby/irb/commit/c8182fa490
| -rw-r--r-- | test/irb/test_color.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index 72e036eab7..9d78f5233e 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -99,7 +99,7 @@ module TestIRB "foo %i[bar]" => "foo #{YELLOW}%i[#{CLEAR}#{YELLOW}bar#{CLEAR}#{YELLOW}]#{CLEAR}", "foo :@bar, baz, :@@qux, :$quux" => "foo #{YELLOW}:#{CLEAR}#{YELLOW}@bar#{CLEAR}, baz, #{YELLOW}:#{CLEAR}#{YELLOW}@@qux#{CLEAR}, #{YELLOW}:#{CLEAR}#{YELLOW}$quux#{CLEAR}", "`echo`" => "#{RED}#{BOLD}`#{CLEAR}#{RED}echo#{CLEAR}#{RED}#{BOLD}`#{CLEAR}", - "\t" => "\t", # not ^I + "\t" => Reline::Unicode.escape_for_print("\t") == ' ' ? ' ' : "\t", # not ^I "foo(*%W(bar))" => "foo(*#{RED}#{BOLD}%W(#{CLEAR}#{RED}bar#{CLEAR}#{RED}#{BOLD})#{CLEAR})", "$stdout" => "#{GREEN}#{BOLD}$stdout#{CLEAR}", "__END__" => "#{GREEN}__END__#{CLEAR}", |
