diff options
author | tompng <tomoyapenguin@gmail.com> | 2022-08-07 20:58:17 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-22 00:37:38 +0900 |
commit | 9f686878794291b088d07866c00f8056a0c7dec7 (patch) | |
tree | 79a0aefe7f6c578cf4aec23dea398a56b38de311 /test | |
parent | 2c6fdc4d65af035769e969dbe5d5718e859973d3 (diff) |
[ruby/irb] Scan every single characters in IRB::Color.scan
https://github.com/ruby/irb/commit/d14e56a65d
Diffstat (limited to 'test')
-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 6ad64a0ae2..73e9b389c2 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -88,6 +88,8 @@ module TestIRB "foo(*%W(bar))" => "foo(*#{RED}#{BOLD}%W(#{CLEAR}#{RED}bar#{CLEAR}#{RED}#{BOLD})#{CLEAR})", "$stdout" => "#{GREEN}#{BOLD}$stdout#{CLEAR}", "__END__" => "#{GREEN}__END__#{CLEAR}", + "foo\n__END__\nbar" => "foo\n#{GREEN}__END__#{CLEAR}\nbar", + "foo\n<<A\0\0bar\nA\nbaz" => "foo\n#{RED}<<A#{CLEAR}^@^@bar\n#{RED}A#{CLEAR}\nbaz", } # specific to Ruby 2.7+ |