Sha256: 8fe35c896260edbb76fc2741c13ac02d52fa33a53fffd802b10cba3fdfc78d44

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

require 'spec_helper'
module Gisele
  module Compiling
    describe ToGlts do

      it 'returns an array of Automaton when called on a unit_def' do
        got = ToGlts.call(complete_ast)
        got.should be_a(Array)
        got.all?{|x| x.is_a? Stamina::Automaton}.should be_true
      end

      it 'returns a Digraph when called on a task_def' do
        got = ToGlts.call(complete_ast.last)
        got.should be_a(Stamina::Automaton)
        got.depth
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gisele-0.5.1 spec/unit/compiling/test_to_glts.rb
gisele-0.5.0 spec/unit/compiling/test_to_glts.rb