rubyx/test/elf/test_hello.rb
2018-03-29 20:37:25 +03:00

16 lines
325 B
Ruby

require_relative "../helper"
class HelloTest < MiniTest::Test
def check
Vool::VoolCompiler.ruby_to_binary( "class Space;def main(arg);#{@input};end;end" )
writer = Elf::ObjectWriter.new(Risc.machine)
writer.save "test/hello.o"
end
def test_string_put
@input = "'Hello'.putstring"
check
end
end