2014-05-21 21:37:04 +03:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestFoo < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
2015-07-18 14:33:09 +03:00
|
|
|
def test_foo2
|
2014-05-21 21:37:04 +03:00
|
|
|
@string_input = <<HERE
|
2015-09-19 16:28:41 +03:00
|
|
|
int foo(int x)
|
|
|
|
int a = 5
|
|
|
|
return a
|
2014-05-30 10:42:43 +03:00
|
|
|
end
|
2014-06-07 23:22:32 +03:00
|
|
|
3.foo( 4 )
|
2014-05-21 21:37:04 +03:00
|
|
|
HERE
|
2015-07-19 12:33:33 +03:00
|
|
|
@expect = [ Virtual::Return ]
|
2015-07-18 14:33:09 +03:00
|
|
|
check
|
2014-05-21 21:37:04 +03:00
|
|
|
end
|
|
|
|
|
2015-07-18 14:33:09 +03:00
|
|
|
|
|
|
|
end
|