rubyx/test/fragments/test_recursive_fibo.rb
Torsten Ruger 5f628744d6 more test working
operator wip
2015-09-20 16:52:26 +03:00

30 lines
451 B
Ruby

require_relative 'helper'
class TestRecursinveFibo < MiniTest::Test
include Fragments
def test_recursive_fibo
@string_input = <<HERE
int fib_print(int n)
fib = fibonaccir( n )
fib.putint()
end
int fibonaccir( int n )
if( n <= 1 )
return n
else
int tmp = n - 1
a = fibonaccir( tmp )
tmp = n - 2
b = fibonaccir( tmp )
return a + b
end
end
fib_print(10)
HERE
@expect = [Virtual::Return ]
check
end
end