2014-05-21 20:37:04 +02:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestFoo < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
2015-07-18 13:33:09 +02:00
|
|
|
def test_foo2
|
2014-05-21 20:37:04 +02:00
|
|
|
@string_input = <<HERE
|
2015-07-18 14:28:57 +02:00
|
|
|
def foo2(x)
|
2014-05-30 09:42:43 +02:00
|
|
|
a = 5
|
|
|
|
end
|
2014-06-07 22:22:32 +02:00
|
|
|
3.foo( 4 )
|
2014-05-21 20:37:04 +02:00
|
|
|
HERE
|
2015-07-18 13:33:09 +02:00
|
|
|
@expect = [Parfait::Method , Virtual::Return ]
|
|
|
|
check
|
2014-05-21 20:37:04 +02:00
|
|
|
end
|
|
|
|
|
2015-07-18 13:33:09 +02:00
|
|
|
def test_foo
|
|
|
|
@string_input = <<HERE
|
|
|
|
3.foo( 4 )
|
|
|
|
HERE
|
|
|
|
@expect = [Virtual::Return ]
|
|
|
|
check
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|