Fix meta_class, sis class instance variables and class methods

after some serious recursive thinking it now actually makes sense.
The key was to change the actual type of the class that the meta_class manages
For objects it's (still) ok just to change the instance_type, but since the class object exists and has type, when adding instance variables, that actual type has to change
This commit is contained in:
2019-09-23 20:42:46 +03:00
parent 7b40bb9106
commit 66728f09f4
8 changed files with 60 additions and 34 deletions

View File

@ -1,7 +1,7 @@
require_relative "../helper"
module Risc
class InterpreterSetters < MiniTest::Test
class InterpreterGetters < MiniTest::Test
include Ticker
def setup
@ -19,7 +19,7 @@ module Risc
MAIN
super
end
#Space type is wrong, shold be same as meta_class.instance_type
def test_chain
#show_main_ticks # get output of what is
run_input @string_input

View File

@ -23,7 +23,7 @@ MAIN
super
end
def est_chain
def test_chain
#show_main_ticks # get output of what is
run_input @string_input
assert_equal 5 , get_return