2014-05-21 20:37:04 +02:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestFoo < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
|
|
|
def test_foo
|
|
|
|
@string_input = <<HERE
|
2014-05-30 09:42:43 +02:00
|
|
|
def foo(x)
|
|
|
|
a = 5
|
|
|
|
end
|
2014-06-07 22:22:32 +02:00
|
|
|
3.foo( 4 )
|
2014-05-21 20:37:04 +02:00
|
|
|
HERE
|
2014-06-12 08:07:03 +02:00
|
|
|
@should = [0x0,0x40,0x2d,0xe9,0x5,0x0,0xa0,0xe3,0x0,0x80,0xbd,0xe8]
|
2014-05-28 13:55:13 +02:00
|
|
|
@output = ""
|
2014-05-21 20:37:04 +02:00
|
|
|
parse
|
2014-06-05 12:02:36 +02:00
|
|
|
@target = [:Object , :foo]
|
2014-05-21 20:37:04 +02:00
|
|
|
write "foo"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|