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