I try to make some additional cases. I think this test is in edge case.
assert cards(4, [0, 0]) == False
assert cards(4, [1, 1]) == True
assert cards(4, [2, 2]) == True
assert cards(4, [3, 3]) == True
assert cards(4, [4, 4]) == False
assert cards(4, [0, 0, 0]) == False
assert cards(4, [1, 1, 1]) == False
assert cards(4, [2, 2, 2]) == False
assert cards(4, [3, 3, 3]) == False
assert cards(4, [4, 4, 4]) == False
assert cards(4, [1, 1, 2, 2]) == False
assert cards(4, [2, 2, 3, 3]) == False
assert cards(4, [0, 1, 2, 3, 3]) == False
assert cards(4, [1, 1, 2, 3, 4]) == False
assert cards(4, [0, 1, 2, 3, 4]) == True
Created at: 2018/09/26 06:56; Updated at: 2018/09/26 15:21
The question is resolved.