rubyx/test/fragments/test_foo.rb

26 lines
327 B
Ruby
Raw Normal View History

2014-05-21 21:37:04 +03:00
require_relative 'helper'
class TestFoo < MiniTest::Test
include Fragments
def test_foo2
2014-05-21 21:37:04 +03:00
@string_input = <<HERE
2015-07-18 15:28:57 +03:00
def foo2(x)
a = 5
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 ]
check
2014-05-21 21:37:04 +03:00
end
def test_foo
@string_input = <<HERE
3.foo( 4 )
HERE
@expect = [Virtual::Return ]
check
end
end