2015-09-27 20:28:34 +03:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestBasicClass < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
|
|
|
def test_class_basic
|
|
|
|
@string_input = <<HERE
|
2015-10-09 18:06:00 +03:00
|
|
|
class Bar
|
|
|
|
int buh()
|
|
|
|
return 1
|
2015-09-27 20:28:34 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
HERE
|
2015-10-18 17:39:35 +03:00
|
|
|
@expect = [ [SaveReturn] ,[RegisterTransfer,GetSlot,FunctionReturn]]
|
2015-09-27 20:28:34 +03:00
|
|
|
check
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|