diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 13:54:03 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 14:15:08 -0700 |
commit | 208ed56e575b83c47d5cc2e48efd6807bb661bdd (patch) | |
tree | 372ca827fd17d2a710897f29cbabab9e95deb7d1 /test/irb | |
parent | ec759011201ce16db7079dbc26ae9c085c2608ba (diff) | |
download | ruby-208ed56e575b83c47d5cc2e48efd6807bb661bdd.tar.gz |
Colorize empty embexpr more on IRB::Color
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_color.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index 95ed190dae..c723f9180b 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -42,6 +42,7 @@ module TestIRB "{'a': 1}" => "{#{RED}'#{CLEAR}#{RED}a#{CLEAR}#{RED}':#{CLEAR} #{BLUE}#{BOLD}1#{CLEAR}}", ":Struct" => "#{BLUE}#{BOLD}:#{CLEAR}#{BLUE}#{BOLD}#{UNDERLINE}Struct#{CLEAR}", "<<EOS\nhere\nEOS" => "#{RED}<<EOS#{CLEAR}\n#{RED}here#{CLEAR}\n#{RED}EOS#{CLEAR}", + '"#{}"' => "#{RED}\"#{CLEAR}#{RED}\#{#{CLEAR}#{RED}}#{CLEAR}#{RED}\"#{CLEAR}", }.each do |code, result| actual = with_term { IRB::Color.colorize_code(code) } assert_equal(result, actual, "Case: colorize_code(#{code.dump})\nResult: #{humanized_literal(actual)}") |