Sha256: 2f0d3350de47787683a2bc3f53ddefea7e91bcc05e8379cca6606867295f5b9e
Contents?: true
Size: 667 Bytes
Versions: 4
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' module Alf describe TupleComputation, 'to_heading' do let(:computation){ TupleComputation[ :big? => lambda{ status > 20 }, :who => lambda{ "#{first} #{last}" }, :sub => Relation::DUM ] } subject{ computation.to_heading } context 'with proper type inference' do it{ pending "type inference on expressions not implemented" do should eq(Heading[:big? => Boolean, :who => String]) end } end context 'with currenttype inference' do it{ should eq(Heading[:big? => Object, :who => Object, :sub => Relation::DUM_TYPE]) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems