more class tests

This commit is contained in:
Torsten Ruger
2015-10-25 13:19:18 +02:00
parent 12e31f28c2
commit 7de2f913a0
3 changed files with 87 additions and 3 deletions

View File

@ -0,0 +1,24 @@
require_relative 'helper'
module Register
class TestBasicClass < MiniTest::Test
include Statements
def test_class_def
@string_input = <<HERE
class Bar
int buh()
return 1
end
end
class Object
int main()
return 1
end
end
HERE
@expect = [Label, SaveReturn,LoadConstant,Label,RegisterTransfer,GetSlot,FunctionReturn]
check
end
end
end