Sha256: 8ef46899a59fbba08786e500d9b6fa4f726114a25e41e7d05262540516566bb8
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Operator, "to_cog" do subject{ op.to_cog } context 'on nullary' do let(:op){ a_lispy.generator(100) } it{ should be_a(Engine::Cog) } end context 'on unary' do let(:op){ a_lispy.restrict(an_operand, ->{ true }) } it{ should be_a(Engine::Cog) } end context 'on binary' do let(:op){ a_lispy.union(an_operand, an_operand) } it{ should be_a(Engine::Cog) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-algebra/operator/shared/test_to_cog.rb |