rubyx/test/fragments/test_putint.rb

17 lines
510 B
Ruby
Raw Normal View History

2014-05-21 21:16:19 +02:00
require_relative 'helper'
class TestPutint < MiniTest::Test
include Fragments
2015-08-08 17:08:15 +02:00
def ttest_putint
2014-05-21 21:16:19 +02:00
@string_input = <<HERE
2014-06-07 22:22:32 +02:00
42.putint()
2014-05-21 21:16:19 +02:00
HERE
2014-06-14 09:59:25 +02:00
@should = [0x0,0x40,0x2d,0xe9,0x2,0x30,0xa0,0xe1,0x78,0x20,0x8f,0xe2,0x9,0x20,0x82,0xe2,0xe2,0xff,0xff,0xeb,0x6c,0x20,0x8f,0xe2,0xc,0x30,0xa0,0xe3,0x1,0x0,0xa0,0xe3,0x2,0x10,0xa0,0xe1,0x3,0x20,0xa0,0xe1,0x4,0x70,0xa0,0xe3,0x0,0x0,0x0,0xef,0x0,0x80,0xbd,0xe8]
@output = " 42 "
@target = [:Object , :putint]
2015-08-08 17:08:15 +02:00
parse
2014-05-21 21:16:19 +02:00
write "putint"
end
end