fix the compile while test

This commit is contained in:
Torsten Ruger
2015-07-18 19:02:54 +03:00
parent 3d8fc8819c
commit a554762da8
4 changed files with 30 additions and 19 deletions

View File

@ -1,5 +1,4 @@
require_relative "virtual_helper"
module Virtual
class TestMethods < MiniTest::Test
@ -34,7 +33,7 @@ def foo(x)
x
end
HERE
@output = nil
@output = [[1,2,3,4],[],[],[]]
check
end
@ -94,6 +93,16 @@ HERE
check
end
def test_while
@string_input = <<HERE
while(1) do
3
end
HERE
@output = [[MethodEnter],[Set,IsTrueBranch,Set,UnconditionalBranch],[],[MethodReturn]]
check
end
def ttest_function_while
@string_input = <<HERE
def fibonaccit(n)