summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-05-25 06:52:10 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2019-05-25 07:10:09 -0700
commite2db9f4cc35dacdca1c0d1f1ae79772dae093c34 (patch)
treee571a3467e69b5ae9eca3ee26c84cb9e9921d206 /test/irb
parente691b4da5d1d70216be3e8853d18bcb6a62a617c (diff)
Add and use Reline::Unicode.escape_for_print
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_color.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb
index 61b4ea48f2..e61e3d3cd8 100644
--- a/test/irb/test_color.rb
+++ b/test/irb/test_color.rb
@@ -35,6 +35,7 @@ module TestIRB
"'a\nb'" => "#{RED}'#{CLEAR}#{RED}a\n#{CLEAR}#{RED}b#{CLEAR}#{RED}'#{CLEAR}",
"4.5.6" => "4.5.6",
"[1]]]" => "[1]]]",
+ "\e[0m\n" => "^[[#{BLUE}#{BOLD}0#{CLEAR}m\n",
}.each do |code, result|
assert_equal(result, with_term { IRB::Color.colorize_code(code) }, "Case: colorize_code(#{code.dump})")
end