Sha256: 81b35812111d9e76cb4e8605d19a3784e805336b6b6c8bc46a73b125c7b29871

Contents?: true

Size: 179 Bytes

Versions: 9

Compression:

Stored size: 179 Bytes

Contents

assert('NilClass#to_a') do
  assert_equal [], nil.to_a
end

assert('NilClass#to_f') do
  assert_equal 0.0, nil.to_f
end

assert('NilClass#to_i') do
  assert_equal 0, nil.to_i
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
webruby-0.9.3 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.9.2 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.9.1 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.2.7 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.2.5 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.2.4 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.2.2 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.2.1 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb
webruby-0.1.2 modules/mruby/mrbgems/mruby-object-ext/test/nil.rb