diff options
| author | Ichito Nagata <[email protected]> | 2018-06-04 10:52:51 +0900 |
|---|---|---|
| committer | Ichito Nagata <[email protected]> | 2018-06-04 11:25:10 +0900 |
| commit | 2af92d0ebcbeca6d3d85a27c8193273080a63090 (patch) | |
| tree | 51213df1520495df867610f6a84e5d47547bc1bb /test/t/hash.rb | |
| parent | 395260747add350d55eab002c183e7028605dbc8 (diff) | |
| download | mruby-2af92d0ebcbeca6d3d85a27c8193273080a63090.tar.gz mruby-2af92d0ebcbeca6d3d85a27c8193273080a63090.zip | |
Let inspect recursion do the right thing
Diffstat (limited to 'test/t/hash.rb')
| -rw-r--r-- | test/t/hash.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/t/hash.rb b/test/t/hash.rb index 5403a5901..63029be42 100644 --- a/test/t/hash.rb +++ b/test/t/hash.rb @@ -351,11 +351,13 @@ end assert('Hash#inspect') do h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300 } + h["recur"] = h ret = h.to_s assert_include ret, '"c"=>300' assert_include ret, '"a"=>100' assert_include ret, '"d"=>400' + assert_include ret, '"recur"=>{...}' end assert('Hash#rehash') do |
