rename data_object to string_node and move the padding there

This commit is contained in:
Torsten Ruger
2014-04-23 00:12:43 +03:00
parent b240dc5100
commit 778890298c
7 changed files with 33 additions and 30 deletions

View File

@ -25,7 +25,7 @@ class TestSmallProg < MiniTest::Test
end
def test_hello
hello = "Hello Raisa"+ "\n\x00"
hello = "Hello Raisa\n"
@generator.instance_eval {
mov r7, 4 # 4 == write
mov r0 , 1 # stdout
@ -35,7 +35,7 @@ class TestSmallProg < MiniTest::Test
mov r7, 1 # 1 == exit
swi 0
}
write(7 , 'label')
write(7 + hello.length/4 + 1 , 'hello')
end
#test dropped along with functionality, didn't work and not needed (yet?) TODO