Sha256: b9d2e485fc2624e6569a8edc5de3df4d99d72a8a1b65ead5451d004b67518226

Contents?: true

Size: 522 Bytes

Versions: 13

Compression:

Stored size: 522 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?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tins-0.5.0 tests/null_test.rb
tins-0.4.3 tests/null_test.rb
tins-0.4.2 tests/null_test.rb
tins-0.4.1 tests/null_test.rb
tins-0.4.0 tests/null_test.rb
tins-0.3.14 tests/null_test.rb
tins-0.3.13 tests/null_test.rb
tins-0.3.12 tests/null_test.rb
tins-0.3.11 tests/null_test.rb
tins-0.3.10 tests/null_test.rb
tins-0.3.9 tests/null_test.rb
tins-0.3.8 tests/null_test.rb
tins-0.3.7 tests/null_test.rb