2014-05-21 20:13:12 +02:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestHello < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
|
|
|
def test_hello
|
|
|
|
@string_input = <<HERE
|
2015-10-05 23:27:13 +02:00
|
|
|
class Object
|
|
|
|
int main()
|
|
|
|
"Hello Raisa, I am salama".putstring()
|
|
|
|
end
|
|
|
|
end
|
2014-05-21 20:13:12 +02:00
|
|
|
HERE
|
2015-10-10 11:04:34 +02:00
|
|
|
@expect = [[Virtual::MethodEnter,Virtual::Set,Register::GetSlot,Virtual::Set,
|
2015-10-18 16:32:32 +02:00
|
|
|
Virtual::Set,Virtual::MethodCall] ,[RegisterTransfer,GetSlot,FunctionReturn]]
|
2015-07-21 18:41:30 +02:00
|
|
|
check
|
2014-05-21 20:13:12 +02:00
|
|
|
end
|
|
|
|
end
|