Sha256: 2a9e6c89a00e8b68cf876b3e83484391d5c4e138a714b4797fc082113bcbe84c

Contents?: true

Size: 460 Bytes

Versions: 5

Compression:

Stored size: 460 Bytes

Contents

covers 'facets/kernel/true'

test_case Kernel do

  method :true? do

    test "nothing is true? but true itself" do
      true.assert.true?

      nil.refute.true?
      false.refute.true?
      1.refute.true?
      :a.refute.true?
    end

  end

  method :false? do

    test "nothing is false? but false itself" do
      false.assert.false?

      nil.refute.false?
      true.refute.false?
      1.refute.false?
      :a.refute.false?
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/kernel/test_true.rb
facets-3.1.0 test/core/kernel/test_true.rb
facets-3.0.0 test/core/kernel/test_true.rb
facets-2.9.3 test/core/kernel/test_true.rb
facets-2.9.2 test/core/kernel/test_true.rb