renamed module_def too module_definition and fixed leading space tests

This commit is contained in:
Torsten Ruger
2014-05-30 10:42:43 +03:00
parent caec5ee6f0
commit e7a823bf3e
10 changed files with 25 additions and 24 deletions

View File

@ -5,7 +5,7 @@ class TestWhileFragment < MiniTest::Test
def test_while
@string_input = <<HERE
def fibonaccit(n) # n == r0
def fibonaccit(n) # n == r0
a = 0 # a == r1
b = 1 # b = r2
while( n > 1 ) do #BUG comment lines + comments behind function calls
@ -15,7 +15,7 @@ class TestWhileFragment < MiniTest::Test
n = n - 1 # r0 <- r2 for call, #call ok
end #r5 <- r0 - 1 n=n-1 through r5 tmp
return b
end # r0 <- r5
end # r0 <- r5
putint(fibonaccit( 10 ))
HERE