rubyx/test/melon/fragments/helper.rb
2017-01-15 20:30:47 +02:00

22 lines
418 B
Ruby

require_relative '../helper'
require "register/interpreter"
require "parser/ruby22"
module Melon
module MelonTests
include CompilerHelper
def setup
Register.machine.boot
end
def check
RubyCompiler.compile @string_input
Register::Collector.collect_space
@interpreter = Register::Interpreter.new
@interpreter.start Register.machine.init
nil
end
end
end