Commit fe138cba authored by Mahira Lepreux's avatar Mahira Lepreux
Browse files

ajout commentaire test

parent d4d92bbf
Pipeline #88712 passed with stage
in 28 seconds
......@@ -33,9 +33,19 @@ def test_base():
"""
def test_clear():
b = Board(3)
b.clear()
b.set_color(Color.BLACK, 0,0)#ajout de couleurs dans différente case de noter tableau
b.set_color(Color.WHITE, 1,1)
b.set_color(Color.BLACK, 1,2)
b.clear()# utilisation de la methode clear pour vider notre tableau
for y in range(3):
for x in range(3):
if ((x,y)==(0,0)):
assert b.color_at(x,y) == Color.EMPTY
if ((x,y)==(1,1)):
assert b.color_at(x,y) == Color.EMPTY
if ((x,y)==(1,2)):
assert b.color_at(x,y) == Color.EMPTY
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment