rubyx/test/elf/test_hello.rb

16 lines
325 B
Ruby
Raw Normal View History

2015-10-14 13:48:42 +03:00
require_relative "../helper"
class HelloTest < MiniTest::Test
def check
2018-03-29 20:37:25 +03:00
Vool::VoolCompiler.ruby_to_binary( "class Space;def main(arg);#{@input};end;end" )
writer = Elf::ObjectWriter.new(Risc.machine)
2016-12-15 18:08:55 +02:00
writer.save "test/hello.o"
end
2018-03-29 20:37:25 +03:00
def test_string_put
@input = "'Hello'.putstring"
2016-12-31 15:08:32 +02:00
check
end
end