fix not same logic

caused by assert logic error, also fixed
This commit is contained in:
Torsten 2020-03-08 18:49:35 +02:00
parent c1cfc12a1c
commit 07873ce068
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ module SlotMachine
assert_operator 3, :-, :"message.caller" , :"message.next_message" assert_operator 3, :-, :"message.caller" , :"message.next_message"
end end
def test_4_zero def test_4_zero
assert_not_zero 4, "target" assert_zero 4, "target"
end end
end end
end end

View File

@ -20,8 +20,8 @@ module SlotMachine
def test_3_op def test_3_op
assert_operator 3, :- , "message.caller" , "message.next_message" assert_operator 3, :- , "message.caller" , "message.next_message"
end end
def test_4_zero def test_4_not_zero
assert_zero 4 , "target" assert_not_zero 4 , "target"
end end
end end
end end

View File

@ -7,7 +7,7 @@ module SlotMachine
def instruction def instruction
SimpleCall.new( make_method ) SimpleCall.new( make_method )
end end
def est_len def test_len
assert_equal 7 , all.length , all_str assert_equal 7 , all.length , all_str
end end
def test_1_load_return_label def test_1_load_return_label