rubyx/test/fragments/test_foo.rb

20 lines
235 B
Ruby
Raw Normal View History

2014-05-21 20:37:04 +02:00
require_relative 'helper'
class TestFoo < MiniTest::Test
include Fragments
def test_foo2
2014-05-21 20:37:04 +02:00
@string_input = <<HERE
int foo(int x)
int a = 5
return a
end
2015-09-27 18:07:56 +02:00
foo( 4 )
2014-05-21 20:37:04 +02:00
HERE
2015-07-19 11:33:33 +02:00
@expect = [ Virtual::Return ]
check
2014-05-21 20:37:04 +02:00
end
end