diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-19 22:19:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-19 12:08:28 +0900 |
| commit | 698f5f707c2db334a15c605bf1b0d0cff42b1224 (patch) | |
| tree | 21b6e810ae42fe51c1531b273ac78e288a7d6fe0 /mrbgems/mruby-array-ext/test/array.rb | |
| parent | 5bbcea9b3bdb0e7dc048f92cebefb54858196935 (diff) | |
| download | mruby-698f5f707c2db334a15c605bf1b0d0cff42b1224.tar.gz mruby-698f5f707c2db334a15c605bf1b0d0cff42b1224.zip | |
Removed `to_ary` conversion method.
Diffstat (limited to 'mrbgems/mruby-array-ext/test/array.rb')
| -rw-r--r-- | mrbgems/mruby-array-ext/test/array.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb index b7467724c..853554bcc 100644 --- a/mrbgems/mruby-array-ext/test/array.rb +++ b/mrbgems/mruby-array-ext/test/array.rb @@ -331,27 +331,11 @@ assert('Array#to_h') do assert_raise(ArgumentError) { [[1]].to_h } end -assert('Array#to_h (Modified)') do - class A - def to_ary - $a.clear - nil - end - end - $a = [A.new] - assert_raise(TypeError) { $a.to_h } -end - assert("Array#index (block)") do assert_nil (1..10).to_a.index { |i| i % 5 == 0 and i % 7 == 0 } assert_equal 34, (1..100).to_a.index { |i| i % 5 == 0 and i % 7 == 0 } end -assert("Array#to_ary") do - assert_equal [], [].to_ary - assert_equal [1,2,3], [1,2,3].to_ary -end - assert("Array#dig") do h = [[[1]], 0] assert_equal(1, h.dig(0, 0, 0)) |
