Sha256: 5b102fe1708960c7d1102b380b6a114eff2bcb26f597891f813f8e6f6d47fff1
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
covers 'facets/kernel/not' test_case Kernel do method :not? do test do b = true b.not?.assert == !b end test :not? do b = false b.not?.assert == !b end test :not? do b = nil b.not?.assert == !b end test :not? do b = Object.new b.not?.assert == !b end end method :not do test do b = true r = b.not.nil? r.assert == true end test :not do b = false r = b.not.nil? r.assert == true end test :not do b = nil r = b.not.nil? r.assert == false end end end
Version data entries
5 entries across 5 versions & 2 rubygems