rubyx/test/fragments/test_foo.rb

19 lines
415 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_foo
@string_input = <<HERE
def foo(x)
a = 5
end
foo( 3 )
HERE
@should = [0x0,0xb0,0xa0,0xe3,0x3,0x10,0xa0,0xe3,0x2,0x0,0x0,0xeb,0x1,0x70,0xa0,0xe3,0x0,0x0,0x0,0xef,0x0,0x70,0xa0,0xe1,0x0,0x40,0x2d,0xe9,0x5,0x20,0xa0,0xe3,0x2,0x70,0xa0,0xe1,0x0,0x80,0xbd,0xe8]
2014-05-21 20:37:04 +02:00
parse
write "foo"
end
end