fix knock ons
This commit is contained in:
parent
6fc84d2f98
commit
30ba626cf9
@ -34,7 +34,7 @@ class TestSpace < MiniTest::Test
|
|||||||
|
|
||||||
def test_integer
|
def test_integer
|
||||||
int = Parfait.object_space.get_class_by_name :Integer
|
int = Parfait.object_space.get_class_by_name :Integer
|
||||||
assert_equal 12, int.instance_type.method_names.get_length
|
assert_equal 14, int.instance_type.method_names.get_length
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_classes_class
|
def test_classes_class
|
||||||
|
@ -22,6 +22,10 @@ module Risc
|
|||||||
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||||
SlotToReg, OperatorInstruction, IsZero, SlotToReg, Branch,
|
SlotToReg, OperatorInstruction, IsZero, SlotToReg, Branch,
|
||||||
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||||
|
SlotToReg, OperatorInstruction, IsZero, SlotToReg, Branch,
|
||||||
|
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||||
|
SlotToReg, OperatorInstruction, IsZero, SlotToReg, Branch,
|
||||||
|
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||||
SlotToReg, OperatorInstruction, IsZero, Label, RegToSlot,
|
SlotToReg, OperatorInstruction, IsZero, Label, RegToSlot,
|
||||||
Label, LoadConstant, SlotToReg, LoadConstant, SlotToReg,
|
Label, LoadConstant, SlotToReg, LoadConstant, SlotToReg,
|
||||||
RegToSlot, RegToSlot, SlotToReg, SlotToReg, RegToSlot,
|
RegToSlot, RegToSlot, SlotToReg, SlotToReg, RegToSlot,
|
||||||
@ -51,19 +55,18 @@ module Risc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_dyn
|
def test_dyn
|
||||||
cal = main_ticks(88)
|
cal = main_ticks(108)
|
||||||
assert_equal DynamicJump , cal.class
|
assert_equal DynamicJump , cal.class
|
||||||
end
|
end
|
||||||
#should end in exit, but doesn't, becasue resolve never returns
|
|
||||||
def test_sys
|
|
||||||
sys = main_ticks(119)
|
|
||||||
assert_equal Syscall , sys.class
|
|
||||||
end
|
|
||||||
def test_return
|
def test_return
|
||||||
ret = main_ticks(117)
|
ret = main_ticks(137)
|
||||||
assert_equal FunctionReturn , ret.class
|
assert_equal FunctionReturn , ret.class
|
||||||
link = @interpreter.get_register( ret.register )
|
link = @interpreter.get_register( ret.register )
|
||||||
assert_equal Label , link.class
|
assert_equal Label , link.class
|
||||||
end
|
end
|
||||||
|
def test_sys
|
||||||
|
sys = main_ticks(139)
|
||||||
|
assert_equal Syscall , sys.class
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user