rubyx/test/elf/test_hello.rb
Torsten Ruger e86ca5ae9d integer was wrong padded§ length
or rather right (2 as should be and will be)
but currently we use next AND value + type means 3, rounded 4
because we can’t swap types at compile time (as is planned at runtime,
we use next OR value)
2018-05-30 14:55:17 +03:00

19 lines
372 B
Ruby

require_relative "../helper"
class HelloTest < MiniTest::Test
def setup
Risc.machine.boot
end
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 = "return 'Hello'.putstring"
check
end
end