rubyx/test/compiler/fragments/test_hello.rb

19 lines
387 B
Ruby
Raw Normal View History

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
2015-10-10 11:04:34 +02:00
@expect = [[Virtual::MethodEnter,Virtual::Set,Register::GetSlot,Virtual::Set,
2015-10-09 20:53:22 +02:00
Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn]]
check
end
end