rubyx/test/fragments/test_hello.rb

18 lines
438 B
Ruby
Raw Normal View History

require_relative 'helper'
class TestHello < MiniTest::Test
include Fragments
def test_hello
@string_input = <<HERE
2014-06-07 22:22:32 +02:00
"Hello Raisa, I am crystal".putstring()
HERE
2014-06-12 08:07:03 +02:00
@should = [0x0,0x40,0x2d,0xe9,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 = "Hello Raisa, I am crystal "
@target = [:Object , :putstring]
parse
write "hello"
end
end