remove calls from tests that don't test call
This commit is contained in:
parent
fcbdba4804
commit
71c59e5bc0
@ -8,7 +8,7 @@ module Vool
|
|||||||
|
|
||||||
def setup
|
def setup
|
||||||
Risc.machine.boot
|
Risc.machine.boot
|
||||||
@ins = compile_first_method( "if(@a == 5) ; 5.mod4 ; else; 4.mod4 ; end")
|
@ins = compile_first_method( "if(5.mod4) ; @a = 6 ; else; @a = 5 ; end")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_condition
|
def test_condition
|
||||||
|
@ -8,7 +8,7 @@ module Vool
|
|||||||
|
|
||||||
def setup
|
def setup
|
||||||
Risc.machine.boot
|
Risc.machine.boot
|
||||||
@ins = compile_first_method( "if(@a) ; 5.mod4 ; end")
|
@ins = compile_first_method( "if(@a) ; @a = 5 ; end")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_condition_compiles_to_check
|
def test_condition_compiles_to_check
|
||||||
@ -24,7 +24,7 @@ module Vool
|
|||||||
assert_equal Label , @ins.last.class , @ins
|
assert_equal Label , @ins.last.class , @ins
|
||||||
end
|
end
|
||||||
def test_array
|
def test_array
|
||||||
check_array [TruthCheck,Label,MessageSetup,ArgumentTransfer,SimpleCall,Label], @ins
|
check_array [TruthCheck, Label, SlotLoad, Label], @ins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@ module Vool
|
|||||||
|
|
||||||
def setup
|
def setup
|
||||||
Risc.machine.boot
|
Risc.machine.boot
|
||||||
@ins = compile_first_method( "if(@a) ; 5.mod4 ; else; 4.mod4 ; end")
|
@ins = compile_first_method( "if(@a) ; @a = 5 ; else; @a = 6 ; end")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_condition_compiles_to_check
|
def test_condition_compiles_to_check
|
||||||
@ -24,8 +24,8 @@ module Vool
|
|||||||
assert_equal Label , @ins.last.class , @ins
|
assert_equal Label , @ins.last.class , @ins
|
||||||
end
|
end
|
||||||
def test_array
|
def test_array
|
||||||
check_array [TruthCheck, Label, MessageSetup, ArgumentTransfer, SimpleCall, Jump ,
|
check_array [TruthCheck, Label, SlotLoad, Jump, Label, SlotLoad ,
|
||||||
Label, MessageSetup, ArgumentTransfer, SimpleCall, Label] , @ins
|
Label] , @ins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@ module Vool
|
|||||||
|
|
||||||
def setup
|
def setup
|
||||||
Risc.machine.boot
|
Risc.machine.boot
|
||||||
@ins = compile_first_method( "while(@a) ; 5.mod4 ; end")
|
@ins = compile_first_method( "while(@a) ; @a = 5 ; end")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_compiles_as_while
|
def test_compiles_as_while
|
||||||
@ -21,7 +21,7 @@ module Vool
|
|||||||
assert_equal SlotDefinition , @ins.next.condition.class , @ins
|
assert_equal SlotDefinition , @ins.next.condition.class , @ins
|
||||||
end
|
end
|
||||||
def test_array
|
def test_array
|
||||||
check_array [Label,TruthCheck,MessageSetup,ArgumentTransfer,SimpleCall,Jump,Label] , @ins
|
check_array [Label, TruthCheck, SlotLoad, Jump, Label], @ins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user