fix and test class definition
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
require_relative "test_if"
|
||||
#require_relative "test_foo"
|
||||
#require_relative "test_hello"
|
||||
#require_relative "test_class"
|
||||
require_relative "test_class"
|
||||
#require_relative "test_putint"
|
||||
#require_relative "test_functions"
|
||||
#require_relative "test_recursive_fibo"
|
||||
|
@ -1,19 +1,24 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Register
|
||||
class TestBasicClass < MiniTest::Test
|
||||
include Fragments
|
||||
|
||||
def test_class_basic
|
||||
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 = [ [SaveReturn] ,[RegisterTransfer,GetSlot,FunctionReturn]]
|
||||
@length = 16
|
||||
check
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user