fix the compile while test
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user