113b349af5
passing it around instead
21 lines
506 B
Ruby
21 lines
506 B
Ruby
require_relative "../helper"
|
|
|
|
class HelloTest < MiniTest::Test
|
|
include AST::Sexp
|
|
|
|
def check
|
|
machine = Register.machine.boot
|
|
Typed.compile( @input )
|
|
objects = machine.collect_space
|
|
machine.translate_arm
|
|
writer = Elf::ObjectWriter.new(machine , objects )
|
|
writer.save "test/hello.o"
|
|
end
|
|
|
|
def test_string_put
|
|
@input = s(:statements, s(:return, s(:call, s(:name, :putstring), s(:arguments),
|
|
s(:receiver, s(:string, "Hello again\\n")))))
|
|
check
|
|
end
|
|
end
|