diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-21 00:10:33 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-21 00:10:33 -0700 |
| commit | 0f2b69642d589aa5a55de7b4807d9b3072e4cc52 (patch) | |
| tree | 73d779862d812a9cc1af8dd5469cc1fd9a72af84 /test | |
| parent | 178a1a63f960188c8d76e14983f75c4e1b346db2 (diff) | |
| parent | 0c5b704de355d021f73af72ff4050485fe4203ec (diff) | |
| download | mruby-0f2b69642d589aa5a55de7b4807d9b3072e4cc52.tar.gz mruby-0f2b69642d589aa5a55de7b4807d9b3072e4cc52.zip | |
Merge pull request #302 from monaka/pr-remove-strlen-in-array
Remove strlen in array
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/array.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/array.rb b/test/t/array.rb index 1cfe02af7..3f441c1cc 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -234,4 +234,12 @@ assert('Array#unshift', '15.2.12.5.30') do a == [1,2,3] and b == [1,2,3] end +assert('Array#to_s', '15.2.12.5.31') do + a = [2, 3, 4, 5] + r1 = a.to_s + r2 = a.inspect + + r1 == r2 and r1 == "[2, 3, 4, 5]" +end + # Not ISO specified |
