Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Théo BOUTEMY
siam
Commits
0b00a076
Commit
0b00a076
authored
Jun 03, 2021
by
Théo BOUTEMY
Browse files
tout fini!!!!!
parent
fbdcf99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
0b00a076
...
...
@@ -67,8 +67,8 @@ class TestAnimal(unittest.TestCase):
elephant1
.
pousser
()
elephant2
.
pousser
()
self
.
assertEqual
(
elephant2
.
coords
,
(
3
,
2
)
)
self
.
assertEqual
(
elephant1
.
coords
,
(
4
,
2
)
)
self
.
assertEqual
(
elephant2
.
coords
,
[
3
,
2
]
)
self
.
assertEqual
(
elephant1
.
coords
,
[
4
,
2
]
)
def
test_changement_orientation
(
self
):
plateau
=
t
.
Plateau
(
xmax
=
5
,
ymax
=
5
,
nb_montagne
=
3
,
joueur1
=
Theo
,
joueur2
=
Pauline
)
...
...
@@ -95,12 +95,6 @@ class TestAnimal(unittest.TestCase):
self
.
assertEqual
(
elephant2
.
coords
,
[
4
,
2
])
# def test_initialiserPlateau(self):
# for k in range(1, 4):
# self.assertEqual(table_jeu1.initialiserPlateau().table_jeu[2, k].car(),
# 'R') # test: initialiserPlateau place bien les rochers au centre de la table
# self.assertEqual(jeu.orientation(0, 1, 'O'), None) # la case est vide
if
__name__
==
'__main__'
:
unittest
.
main
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment