Sha256: c7298d5e560fd66cfa6b962078797591f07f657b26a2f627df927f2e8680ccea
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Binary, "with_left" do let(:operand_1){ an_operand } let(:operand_2){ an_operand } let(:operand_3){ an_operand } let(:operator) { a_lispy.union(operand_1, operand_2) } subject{ operator.with_left(operand_3) } it{ should be_a(Algebra::Union) } specify{ subject.left.should eq(operand_3) subject.right.should eq(operand_2) } specify{ operator.left.should eq(operand_1) operator.right.should eq(operand_2) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems