Sha256: 74b5d8fe23ce070e0b5e2c2bfbb0d9e2e2c37af6e13263e72f4c12faf813af87
Contents?: true
Size: 623 Bytes
Versions: 4
Compression:
Stored size: 623 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Unary, "with_operand" do let(:operand_1){ an_operand } let(:operand_2){ an_operand } let(:extension){ TupleComputation.coerce({:big => "tested > 10"}) } let(:operator) { a_lispy.extend(operand_1, extension) } subject{ operator.with_operand(operand_2) } it{ should be_a(Extend) } specify{ subject.operand.should eq(operand_2) subject.ext.should be(extension) } specify{ operator.operand.should eq(operand_1) operator.ext.should be(extension) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems