rubyx/test/compiler/statements/test_class.rb
Torsten Ruger b7d0ee8f99 wit metaclass and class functions
needs to go back to arrays first
2015-10-25 15:40:12 +02:00

25 lines
373 B
Ruby

require_relative 'helper'
module Register
class TestBasicClass < MiniTest::Test
include Statements
def test_class_def
@string_input = <<HERE
class Bar
int self.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