fix fragment tests to actually execute on the pi and check the output

This commit is contained in:
Torsten Ruger
2014-05-28 14:55:13 +03:00
parent e9720c4c54
commit 5a415aed92
9 changed files with 26 additions and 12 deletions

View File

@ -5,10 +5,13 @@ class TestRecursinveFibo < MiniTest::Test
def test_recursive_fibo
@string_input = <<HERE
def fibonaccir( n )
return n if n <= 1
def fibonaccir( n )
if n <= 1
return n
else
res = fibonaccir( n - 1 ) + fibonaccir( n - 2 )
return res
end
end
putint(fibonaccir( 10 ))