• additional test

Question related to mission Card Game

 

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
49