Sha256: b03732c84d959b7214be0de7c9a86c90cef2a401913329d3b0f5623468000ca5

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'
module Alf
  class Predicate
    describe Predicate, "tautology?" do

      subject{ pred.tautology? }

      context "tautology" do
        subject{ Predicate.tautology }

        it{ should be_true }
      end

      context "contradiction" do
        subject{ Predicate.contradiction }

        it{ should be_false }
      end

      context "identifier" do
        subject{ Predicate.identifier(:x) }

        it{ should be_false }
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-predicate/predicate/test_tautology.rb