rubyx/test/elf/test_hello.rb
Torsten Ruger 5fe0ba06ab stash old vm
moving on to getting mom to work and can’t have both
interpreter and elf broke, about 100 tests  went
2018-03-11 17:02:42 +05:30

21 lines
501 B
Ruby

require_relative "../helper"
class HelloTest < MiniTest::Test
include AST::Sexp
def check
machine = Risc.machine.boot
Vm.compile_ast( @input )
objects = Risc::Collector.collect_space
machine.translate_arm
writer = Elf::ObjectWriter.new(machine , objects )
writer.save "test/hello.o"
end
def pest_string_put
@input = s(:statements, s(:return, s(:call, :putstring, s(:arguments),
s(:receiver, s(:string, "Hello again\\n")))))
check
end
end