From 07873ce0684a95f45c5a723e04afad33b0fba702 Mon Sep 17 00:00:00 2001 From: Torsten Date: Sun, 8 Mar 2020 18:49:35 +0200 Subject: [PATCH] fix not same logic caused by assert logic error, also fixed --- test/slot_machine/instructions/test_not_same_check.rb | 2 +- test/slot_machine/instructions/test_same_check.rb | 4 ++-- test/slot_machine/instructions/test_simple_call.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/slot_machine/instructions/test_not_same_check.rb b/test/slot_machine/instructions/test_not_same_check.rb index 8387d129..88a59c3e 100644 --- a/test/slot_machine/instructions/test_not_same_check.rb +++ b/test/slot_machine/instructions/test_not_same_check.rb @@ -20,7 +20,7 @@ module SlotMachine assert_operator 3, :-, :"message.caller" , :"message.next_message" end def test_4_zero - assert_not_zero 4, "target" + assert_zero 4, "target" end end end diff --git a/test/slot_machine/instructions/test_same_check.rb b/test/slot_machine/instructions/test_same_check.rb index 154bbd81..1e81b030 100644 --- a/test/slot_machine/instructions/test_same_check.rb +++ b/test/slot_machine/instructions/test_same_check.rb @@ -20,8 +20,8 @@ module SlotMachine def test_3_op assert_operator 3, :- , "message.caller" , "message.next_message" end - def test_4_zero - assert_zero 4 , "target" + def test_4_not_zero + assert_not_zero 4 , "target" end end end diff --git a/test/slot_machine/instructions/test_simple_call.rb b/test/slot_machine/instructions/test_simple_call.rb index 931ab2c5..0f57b8f0 100644 --- a/test/slot_machine/instructions/test_simple_call.rb +++ b/test/slot_machine/instructions/test_simple_call.rb @@ -7,7 +7,7 @@ module SlotMachine def instruction SimpleCall.new( make_method ) end - def est_len + def test_len assert_equal 7 , all.length , all_str end def test_1_load_return_label