fix many tests with preloading
preloading, something akin to builtin, loads some very small predefined (macro) methods for the tests to work (ie call)
This commit is contained in:
@ -5,7 +5,6 @@ module Risc
|
||||
include Statements
|
||||
|
||||
def setup
|
||||
super
|
||||
@input = as_block("a = 5")
|
||||
@expect = [LoadConstant, RegToSlot]
|
||||
end
|
||||
|
@ -5,7 +5,6 @@ module Risc
|
||||
include Statements
|
||||
|
||||
def setup
|
||||
super
|
||||
@input = as_block("return 5")
|
||||
@mom = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_mom(as_main)
|
||||
end
|
||||
|
@ -5,7 +5,7 @@ module Risc
|
||||
include Statements
|
||||
|
||||
def setup
|
||||
super
|
||||
|
||||
@input = as_block("return 5")
|
||||
@expect = [LoadConstant, RegToSlot, LoadConstant, SlotToReg, RegToSlot, #5
|
||||
SlotToReg, SlotToReg, RegToSlot, LoadConstant, SlotToReg, #10
|
||||
|
Reference in New Issue
Block a user