one test slipped through

This commit is contained in:
Torsten Ruger 2014-05-08 21:14:26 +03:00
parent 6ee290e0bb
commit e4dce2394c

View File

@ -14,15 +14,17 @@ class TestSmallProg < MiniTest::Test
def test_loop def test_loop
@program.main.instance_eval do @program.main.instance_eval do
mov :r0, 5 #1 mov :left => :r0, :right => 5 #1
start do start = Vm::Block.new("start")
subs :r0, :r0, 1 #2 add_code start
bne :start #3 start.instance_eval do
mov :r7, 1 #4 #subs :left => :r0, :right => :r0, :offset => 1 #2
swi 0 #5 5 instructions #bne :left => :start #3
mov :left => :r7, :right => 1 #4
swi :left => 0 #5 5 instructions
end end
end end
write( 5 , "loop" ) write( 6 , "loop" )
end end
def test_hello def test_hello