rubyx/test/fragments/test_putint.rb

19 lines
369 B
Ruby
Raw Normal View History

2014-05-21 21:16:19 +02:00
require_relative 'helper'
class TestPutint < MiniTest::Test
include Fragments
2015-09-20 15:52:26 +02:00
def test_putint
2014-05-21 21:16:19 +02:00
@string_input = <<HERE
class Object
int main()
42.putint()
end
end
2014-05-21 21:16:19 +02:00
HERE
2015-10-09 20:53:22 +02:00
@expect = [ [Virtual::MethodEnter,Virtual::Set,Virtual::NewMessage,Virtual::Set,
Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn] ]
2015-09-20 15:52:26 +02:00
check
2014-05-21 21:16:19 +02:00
end
end