translate and interpret new instructions

This commit is contained in:
Torsten Ruger
2015-11-19 10:09:55 +02:00
parent ac5a7ac4ca
commit 249f43ad34
3 changed files with 63 additions and 6 deletions

View File

@ -28,6 +28,7 @@ return w.char_at(1)
HERE
check_return 32
end
def test_after_add_get_works
@main = <<HERE
Word w = " "
@ -61,4 +62,14 @@ return w.char_at(2)
HERE
check_return 50
end
def test_set2
@main = <<HERE
Word w = "12345"
w.set_char_at(2 , 51)
return w.char_at(2)
HERE
check_return 51
end
end