diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-26 23:44:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-26 23:46:14 +0900 |
commit | 4f2a7b800110346292890e3bed41b37f3f58ab0b (patch) | |
tree | 13b552c3a56081251c3b2e5cdb5c8dfe42496437 /test/irb/test_color.rb | |
parent | 23270f6fee88668a5099fa16eb48739fba2d9dd6 (diff) | |
download | ruby-4f2a7b800110346292890e3bed41b37f3f58ab0b.tar.gz |
Colorize imaginary and rational literals
Diffstat (limited to 'test/irb/test_color.rb')
-rw-r--r-- | test/irb/test_color.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index 3ba0c4c1ac..3d0eee74d5 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -25,6 +25,8 @@ module TestIRB { "1" => "#{BLUE}#{BOLD}1#{CLEAR}", "2.3" => "#{MAGENTA}#{BOLD}2.3#{CLEAR}", + "7r" => "#{BLUE}#{BOLD}7r#{CLEAR}", + "8i" => "#{MAGENTA}#{BOLD}8i#{CLEAR}", "['foo', :bar]" => "[#{RED}'#{CLEAR}#{RED}foo#{CLEAR}#{RED}'#{CLEAR}, #{YELLOW}:#{CLEAR}#{YELLOW}bar#{CLEAR}]", "class A; end" => "#{GREEN}class#{CLEAR} #{BLUE}#{BOLD}#{UNDERLINE}A#{CLEAR}; #{GREEN}end#{CLEAR}", "def self.foo; bar; end" => "#{GREEN}def#{CLEAR} #{CYAN}#{BOLD}self#{CLEAR}.#{BLUE}#{BOLD}foo#{CLEAR}; bar; #{GREEN}end#{CLEAR}", |