Sha256: dfe996efdd1a6a1a7753e817b0646e4ededa65f4f05e09479abc9af14a83df16
Contents?: true
Size: 776 Bytes
Versions: 10
Compression:
Stored size: 776 Bytes
Contents
require 'spec_helper' module Finitio describe Syntax, '.compile' do subject do Syntax.compile(source) end context 'with a single main type' do let(:source){ <<-EOF.strip .Integer EOF } it{ should be_a(System) } it 'should have main type' do expect(subject.main).to be_a(BuiltinType) expect(subject['Main']).to be(subject.main) end end context 'with a single main alias type' do let(:source){ <<-EOF.strip Int = .Integer Int EOF } it{ should be_a(System) } it 'should have main type' do expect(subject.main).to be_a(AliasType) expect(subject['Main']).to be(subject.main) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems