more machinery to the machine

This commit is contained in:
Torsten Ruger
2014-07-30 21:43:12 +03:00
parent 5add9c42f2
commit 8effcc866a
3 changed files with 20 additions and 7 deletions

View File

@ -8,10 +8,8 @@ module VirtualHelper
end
def check
machine = Virtual::Machine.new
parts = machine.read @string_input
main = Virtual::MethodDefinition.main
expressions = parts.compile( main, machine.message )
machine = Virtual::Machine.boot
expressions = machine.compile_main @string_input
should = YAML.load(@output.gsub("RETURN_MARKER" , "\n"))
assert_equal should , expressions , expressions.to_yaml.gsub("\n" , "RETURN_MARKER") + "\n" + expressions.to_yaml
end