rubyx/test/fragments/test_hello.rb
2015-10-09 21:53:22 +03:00

19 lines
389 B
Ruby

require_relative 'helper'
class TestHello < MiniTest::Test
include Fragments
def test_hello
@string_input = <<HERE
class Object
int main()
"Hello Raisa, I am salama".putstring()
end
end
HERE
@expect = [[Virtual::MethodEnter,Virtual::Set,Virtual::NewMessage,Virtual::Set,
Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn]]
check
end
end