Module: Array::Etest
- Defined in:
- lib/vex/boot/array.rb
Instance Method Summary collapse
Instance Method Details
#test_extract_options ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/vex/boot/array.rb', line 12 def arr = %w(1 2) assert_equal({}, arr.) assert_equal(%w(1 2), arr) arr = [ 1, 2, { :a => :b }] assert_equal({ :a => :b }, arr.) assert_equal( [ 1, 2 ], arr) end |