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"
|
||||
end
|
||||
def test_4_zero
|
||||
assert_not_zero 4, "target"
|
||||
assert_zero 4, "target"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user