Skip to content

Commit c8182fa

Browse files
authored
Accept " " for colorizing "\t" test (#924)
1 parent e8ea8f2 commit c8182fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/irb/test_color.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_colorize_code
9999
"foo %i[bar]" => "foo #{YELLOW}%i[#{CLEAR}#{YELLOW}bar#{CLEAR}#{YELLOW}]#{CLEAR}",
100100
"foo :@bar, baz, :@@qux, :$quux" => "foo #{YELLOW}:#{CLEAR}#{YELLOW}@bar#{CLEAR}, baz, #{YELLOW}:#{CLEAR}#{YELLOW}@@qux#{CLEAR}, #{YELLOW}:#{CLEAR}#{YELLOW}$quux#{CLEAR}",
101101
"`echo`" => "#{RED}#{BOLD}`#{CLEAR}#{RED}echo#{CLEAR}#{RED}#{BOLD}`#{CLEAR}",
102-
"\t" => "\t", # not ^I
102+
"\t" => Reline::Unicode.escape_for_print("\t") == ' ' ? ' ' : "\t", # not ^I
103103
"foo(*%W(bar))" => "foo(*#{RED}#{BOLD}%W(#{CLEAR}#{RED}bar#{CLEAR}#{RED}#{BOLD})#{CLEAR})",
104104
"$stdout" => "#{GREEN}#{BOLD}$stdout#{CLEAR}",
105105
"__END__" => "#{GREEN}__END__#{CLEAR}",

0 commit comments

Comments
 (0)