rubyx/test/fragments/test_putint.rb
2015-10-10 12:04:34 +03:00

19 lines
367 B
Ruby

require_relative 'helper'
class TestPutint < MiniTest::Test
include Fragments
def test_putint
@string_input = <<HERE
class Object
int main()
42.putint()
end
end
HERE
@expect = [ [Virtual::MethodEnter,Virtual::Set,Register::GetSlot,Virtual::Set,
Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn] ]
check
end
end