Sha256: a019bc5469e3017918ec3b7f5f5c37f7fd5aa5bb6c0dec39375c992c32436873
Contents?: true
Size: 490 Bytes
Versions: 2
Compression:
Stored size: 490 Bytes
Contents
require 'spec_helper' module Finitio describe Syntax, "any_type" do subject{ Syntax.parse(source, root: "any_type") } let(:source){ "." } describe "compilation result" do let(:compiled){ subject.compile(type_factory) } it 'compiles to an AnyType' do compiled.should be_a(AnyType) end end describe "AST" do let(:ast){ subject.to_ast } it{ ast.should eq([:any_type]) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/syntax/nodes/test_any_type.rb |
finitio-0.4.0 | spec/unit/syntax/nodes/test_any_type.rb |