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/array.rb | |
| parent | 395260747add350d55eab002c183e7028605dbc8 (diff) | |
| download | mruby-2af92d0ebcbeca6d3d85a27c8193273080a63090.tar.gz mruby-2af92d0ebcbeca6d3d85a27c8193273080a63090.zip | |
Let inspect recursion do the right thing
Diffstat (limited to 'test/t/array.rb')
| -rw-r--r-- | test/t/array.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/array.rb b/test/t/array.rb index ecec39363..3ed3d54ec 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -318,11 +318,12 @@ end assert('Array#to_s', '15.2.12.5.31 / 15.2.12.5.32') do a = [2, 3, 4, 5] + a[4] = a r1 = a.to_s r2 = a.inspect assert_equal(r2, r1) - assert_equal("[2, 3, 4, 5]", r1) + assert_equal("[2, 3, 4, 5, [...]]", r1) end assert('Array#==', '15.2.12.5.33') do |
