Skip to content

Commit 9dc2024

Browse files
claudeko1
authored andcommitted
Update color test for IRB struct member name coloring
The latest IRB version wraps struct member names in CYAN, so the expected output in test_colored_inspect_color_objects_if_use_colorize needs to wrap `foo` with CYAN/CLEAR escape sequences.
1 parent 95997c2 commit 9dc2024

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/console/color_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def bar
3333
end
3434
end
3535

36-
{ "#{GREEN}#<struct #{CLEAR} foo#{GREEN}=#{CLEAR}#{RED}#{BOLD}\"#{CLEAR}#{RED}b#{CLEAR}#{RED}#{BOLD}\"#{CLEAR}#{GREEN}>#{CLEAR}\n": dummy_class.new('b'),
36+
{ "#{GREEN}#<struct #{CLEAR} #{CYAN}foo#{CLEAR}#{GREEN}=#{CLEAR}#{RED}#{BOLD}\"#{CLEAR}#{RED}b#{CLEAR}#{RED}#{BOLD}\"#{CLEAR}#{GREEN}>#{CLEAR}\n": dummy_class.new('b'),
3737
"#{RED}#{BOLD}\"#{CLEAR}#{RED}hoge#{CLEAR}#{RED}#{BOLD}\"#{CLEAR}\n": 'hoge'}.each do |k, v|
3838
expected = k.to_s
3939
obj = v

0 commit comments

Comments
 (0)