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

Version Path
tins-0.10.0 tests/null_test.rb
tins-0.9.0 tests/null_test.rb
tins-0.8.4 tests/null_test.rb
tins-0.8.3 tests/null_test.rb
tins-0.8.2 tests/null_test.rb
tins-0.8.0 tests/null_test.rb
tins-0.7.4 tests/null_test.rb
tins-0.7.3 tests/null_test.rb
tins-0.7.2 tests/null_test.rb
tins-0.7.1 tests/null_test.rb
tins-0.7.0 tests/null_test.rb
tins-0.6.0 tests/null_test.rb
tins-0.5.6 tests/null_test.rb
tins-0.5.5 tests/null_test.rb
tins-0.5.4 tests/null_test.rb
tins-0.5.3 tests/null_test.rb
tins-0.5.2 tests/null_test.rb
tins-0.5.1 tests/null_test.rb