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:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user