Sha256: e52df9d413d73c6264ac057912d83d93eb643f04f3fa66a5b7dcd993708d47f7
Contents?: true
Size: 547 Bytes
Versions: 18
Compression:
Stored size: 547 Bytes
Contents
require 'test_helper' require 'tins' module Tins class NullTest < Test::Unit::TestCase require 'tins/xt/null' def test_null assert_equal NULL, NULL.foo assert_equal NULL, NULL.foo.bar assert_equal 'NULL', NULL.inspect assert_equal '', NULL.to_s assert_equal 0, NULL.to_i assert_equal 0.0, NULL.to_f assert_equal [], NULL.to_a assert_equal 1, Null(1) assert_equal NULL, Null(nil) assert_equal NULL, NULL::NULL assert NULL.nil? assert NULL.blank? end end end
Version data entries
18 entries across 18 versions & 1 rubygems