More rename cleanp
This commit is contained in:
@ -7,7 +7,7 @@ module SlotMachine
|
||||
end
|
||||
end
|
||||
|
||||
# Most SlotMachineInstructionTests test the risc instructions of the mom instruction
|
||||
# Most SlotMachineInstructionTests test the risc instructions of the slot instruction
|
||||
# quite carefully, ie every instruction, every register.
|
||||
#
|
||||
# This is done with the assert methods in risc_assert
|
||||
|
@ -1,13 +1,13 @@
|
||||
require_relative "../helper"
|
||||
|
||||
module Mom
|
||||
module SlotMachine
|
||||
module Builtin
|
||||
class BootTest < MiniTest::Test
|
||||
include Preloader
|
||||
|
||||
def get_compiler(clazz , name)
|
||||
compiler = RubyX::RubyXCompiler.new(RubyX.default_test_options)
|
||||
coll = compiler.ruby_to_mom( get_preload("Space.main;#{clazz}.#{name}") )
|
||||
coll = compiler.ruby_to_slot( get_preload("Space.main;#{clazz}.#{name}") )
|
||||
@method = coll.method_compilers.last_compiler
|
||||
@method
|
||||
end
|
||||
|
@ -62,9 +62,9 @@ module SlotMachine
|
||||
assert_equal 2 , method.frame_type.variable_index(:a)
|
||||
end
|
||||
def constant_setup(input)
|
||||
mom = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_slot(in_Test(input))
|
||||
assert_equal SlotMachine::SlotCollection , mom.class
|
||||
compiler = mom.method_compilers
|
||||
slot = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_slot(in_Test(input))
|
||||
assert_equal SlotMachine::SlotCollection , slot.class
|
||||
compiler = slot.method_compilers
|
||||
assert_equal SlotMachine::MethodCompiler , compiler.class
|
||||
compiler
|
||||
end
|
||||
|
Reference in New Issue
Block a user