Sha256: 0a0e080ed22b0d823c1120b265e8e766ffd61e7e5107e9fab5ad973b56d2b984
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Unary, '#operand' do subject { object.operand } let(:described_class) { Class.new(Optimizer) { include Optimizer::Function::Unary } } let(:function) { Class.new(Function) { include Function::Unary }.new(operand) } let(:object) { described_class.new(function) } context 'when the operand is frozen' do let(:operand) { 'Operand'.freeze } it { should be(operand) } end context 'when the operand is not frozen' do let(:operand) { 'Operand' } it { should_not be(operand) } it { should be_frozen } it { should == operand } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/unit/axiom/optimizer/function/unary/operand_spec.rb |
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/function/unary/operand_spec.rb |