23 lines
459 B
Ruby
23 lines
459 B
Ruby
require_relative '../helper'
|
|
require "register/interpreter"
|
|
require "parser/ruby22"
|
|
|
|
module Melon
|
|
module MelonTests
|
|
include CompilerHelper
|
|
include Register::InterpreterHelpers
|
|
|
|
def setup
|
|
Register.machine.boot
|
|
end
|
|
|
|
def check_nil
|
|
RubyCompiler.compile @string_input
|
|
Register::Collector.collect_space
|
|
@interpreter = Register::Interpreter.new
|
|
@interpreter.start Register.machine.init
|
|
nil
|
|
end
|
|
end
|
|
end
|