fix not same logic
caused by assert logic error, also fixed
This commit is contained in:
parent
c1cfc12a1c
commit
07873ce068
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user