rubyx/test/melon/fragments/helper.rb

22 lines
418 B
Ruby
Raw Normal View History

require_relative '../helper'
require "register/interpreter"
require "parser/ruby22"
module Melon
module MelonTests
2017-01-15 19:30:47 +01:00
include CompilerHelper
def setup
2017-01-12 19:38:04 +01:00
Register.machine.boot
end
def check
RubyCompiler.compile @string_input
2017-01-12 19:38:04 +01:00
Register::Collector.collect_space
@interpreter = Register::Interpreter.new
@interpreter.start Register.machine.init
nil
end
end
end