rubyx/test/fragments/test_foo.rb
2015-10-09 21:53:22 +03:00

26 lines
427 B
Ruby

require_relative 'helper'
class TestFoo < MiniTest::Test
include Fragments
def test_foo2
@string_input = <<HERE
class Object
int foo(int x)
int a = 5
return a
end
int main()
foo( 4 )
end
end
HERE
@expect = [ [Virtual::MethodEnter,Virtual::NewMessage,Virtual::Set,Virtual::Set,
Virtual::Set,Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn] ]
check
end
end