fix test after syntax changes

This commit is contained in:
Torsten Ruger
2015-10-19 15:21:23 +03:00
parent 3061ddfed9
commit 6710567af9
15 changed files with 42 additions and 46 deletions

View File

@ -2,7 +2,7 @@ class Object
int fibonaccit(int n)
a = 0
b = 1
while( n > 1 )
while_plus( n )
tmp = a
a = b
b = tmp + b
@ -31,11 +31,9 @@ s(:statements,
s(:assignment,
s(:name, :b),
s(:int, 1)),
s(:while_statement,
s(:condition,
s(:operator_value, :>,
s(:name, :n),
s(:int, 1))),
s(:while_statement, :plus,
s(:conditional,
s(:name, :n)),
s(:statements,
s(:assignment,
s(:name, :tmp),