21 lines
387 B
Ruby
21 lines
387 B
Ruby
require_relative '../helper'
|
|
require "register/interpreter"
|
|
require "parser/ruby22"
|
|
|
|
module Melon
|
|
module MelonTests
|
|
|
|
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
|