Sha256: eca842c0b81e1cf217cc39fcbedbbafc4427872a9719fbb3926124c191c6304a

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/bool.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/kernel/bool.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase

    def test_false?
      assert( false.false? )
      assert( (1 == 2).false? )
      assert( ! (1 == 1).false? )
    end

    def test_true?
      assert( true.true? )
      assert( (1 == 1).true? )
      assert( ! (1 == 2).true? )
    end

    def test_bool?
      assert_equal( true, true.bool? )
      assert_equal( true, false.bool? )
      assert_equal( false, nil.bool? )
      assert_equal( false, 0.bool? )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/kernel/test_bool.rb