Sha256: bcebb837d3e3bfd576138090f28c773ee8dbf9968b550b15c3854e6719476736

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

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

assert('NilClass#to_f') do
  skip unless Object.const_defined?(:Float)
  assert_equal 0.0, nil.to_f
end

assert('NilClass#to_h') do
  assert_equal Hash.new, nil.to_h
end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.3.0 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.7 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.6 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.5 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.4 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.3 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.2 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.1 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb
script_core-0.2.0 ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb