rubyx/test/elf/test_hello.rb

19 lines
367 B
Ruby
Raw Normal View History

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