aboutsummaryrefslogtreecommitdiffstats
path: root/test/irb/test_color.rb
diff options
context:
space:
mode:
authorAry Borenszweig <asterite@gmail.com>2019-10-15 01:25:05 -0300
committerTakashi Kokubun <takashikkbn@gmail.com>2019-10-14 21:25:05 -0700
commit96617ad1d57a13e9a282fb663ea73e4801519389 (patch)
tree1b1f4404b5a2c1a88c3bba42b292e99ff7305ba1 /test/irb/test_color.rb
parentddd42d8ebdefc520b0c7d6ada4fb0de6969a49f8 (diff)
downloadruby-96617ad1d57a13e9a282fb663ea73e4801519389.tar.gz
IRB colorize: take into account recursive arrays and hashes (#2555)
[Bug #16250]
Diffstat (limited to 'test/irb/test_color.rb')
-rw-r--r--test/irb/test_color.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb
index 3ecbee8cd6..ba76164314 100644
--- a/test/irb/test_color.rb
+++ b/test/irb/test_color.rb
@@ -125,6 +125,8 @@ module TestIRB
1 => true,
2.3 => true,
['foo', :bar] => true,
+ (a = []; a << a; a) => false,
+ (h = {}; h[h] = h; h) => false,
{ a: 4 } => true,
/reg/ => true,
(1..3) => true,