2015-12-01 10:55:33 +01:00
|
|
|
require_relative 'helper'
|
|
|
|
|
2017-01-11 18:18:04 +01:00
|
|
|
module Melon
|
|
|
|
class TestRubyCalls < MiniTest::Test
|
|
|
|
include MelonTests
|
|
|
|
|
|
|
|
def pest_ruby_calls
|
|
|
|
@string_input = <<HERE
|
|
|
|
|
|
|
|
def fibo_r( n )
|
|
|
|
if( n < 2 )
|
|
|
|
return n
|
|
|
|
else
|
|
|
|
return fibo_r(n - 1) + fibo_r(n - 2)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
fibo 40
|
2015-12-01 10:55:33 +01:00
|
|
|
HERE
|
2017-01-11 18:18:04 +01:00
|
|
|
@stdout = "Hello there"
|
|
|
|
check
|
2015-12-01 10:55:33 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|