e86ca5ae9d
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)
19 lines
372 B
Ruby
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
|