Sha256: d62622823b7d027704eaa9545fa9e04362051011c267a4507dbac04e12d2d4d7

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 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 1, Null(1)
      assert_equal NULL, Null(nil)
      assert_equal NULL, NULL::NULL
      assert NULL.nil?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tins-0.3.6 tests/null_test.rb
tins-0.3.5 tests/null_test.rb