much less test code (s-exps) needed because compiler defaults to main

but some compilation outside needed, hence clean_compile
This commit is contained in:
Torsten Ruger
2016-12-17 00:19:23 +02:00
parent 5c34835ae3
commit 1a224f904b
9 changed files with 24 additions and 22 deletions

View File

@ -4,7 +4,7 @@ class AddChange < MiniTest::Test
include Ticker
def setup
@input = s(:statements, s(:class, :Space, s(:derives, nil), s(:statements, s(:function, :Integer, s(:name, :main), s(:parameters), s(:statements, s(:return, s(:operator_value, :+, s(:int, 5), s(:int, 7))))))))
@input = s(:statements, s(:return, s(:operator_value, :+, s(:int, 5), s(:int, 7))))
@state_events = {}
@instruction_events = []
super