rubyx/test/melon/fragments/helper.rb

23 lines
459 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
include Register::InterpreterHelpers
def setup
2017-01-12 19:38:04 +01:00
Register.machine.boot
end
def check_nil
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