Sha256: c0d16f805e6f4ae712b52ffd12a77246bfd1825e98c436c90c220ca7534e9bc9

Contents?: true

Size: 880 Bytes

Versions: 1

Compression:

Stored size: 880 Bytes

Contents

require 'spec_helper'

describe DpllSolver::Formulas::Verum do
  let(:verum) { DpllSolver::Formulas::Verum }
  it 'should be "1" as string' do
    expect(verum.to_s).to eql "1"
  end

  it 'should test syntactic eqivalenz' do
    expect(verum == DpllSolver::Formulas::Verum).to eql true
    expect(verum == DpllSolver::Formulas).to eql false
  end

  it 'should be a literal' do
    expect(verum.literal?).to eql true
  end

  it 'should be a atomic formula' do
    expect(verum.atomic_formula?).to eql true
  end

  it 'should be a min term' do
    expect(verum.min_term?).to eql true
  end

  it 'should be a nnf' do
    expect(verum.nnf?).to eql true
  end

  it 'should be a cnf' do
    expect(verum.cnf?).to eql true
  end

  it 'should be a dnf' do
    expect(verum.dnf?).to eql true
  end

  it 'should simplify verum' do
    expect(verum.simplify).to eql verum
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dpll_solver-0.0.1 spec/formulas/verum_spec.rb