Sha256: 765cf89b7014a92618fa8f118a8171f53ba4d1d3c2fae9e733faa13d125358e6

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Function::Connective::Negation, '#operand' do
  subject { object.operand }

  let(:optimized_operand) { double('Optimized Operand')                    }
  let(:operand)           { double('Operand', optimize: optimized_operand) }
  let(:negation)          { double('Negation', operand: operand)           }
  let(:object)            { described_class.new(negation)                  }

  it { should be(optimized_operand) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/function/connective/negation/operand_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/connective/negation/operand_spec.rb