rubyx/test/fragments/test_hello.rb
2014-06-12 09:07:03 +03:00

18 lines
438 B
Ruby

require_relative 'helper'
class TestHello < MiniTest::Test
include Fragments
def test_hello
@string_input = <<HERE
"Hello Raisa, I am crystal".putstring()
HERE
@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