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
1c642e25
Commit
1c642e25
authored
May 25, 2021
by
Théo BOUTEMY
Browse files
tests unitaires
parent
2aa670bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
1c642e25
...
...
@@ -59,6 +59,19 @@ class TestAnimal(unittest.TestCase):
self
.
assertEqual
(
elephant
.
coords
[
0
],
6
)
self
.
assertEqual
(
rhinoceros
.
coords
[
0
],
-
2
)
def
test_pousser
(
self
):
plateau
=
t
.
Plateau
(
xmax
=
5
,
ymax
=
5
,
nb_montagne
=
3
,
joueur1
=
Theo
,
joueur2
=
Pauline
)
elephant1
=
p
.
Elephant
(
4
,
3
,
'h'
,
plateau
)
elephant2
=
p
.
Elephant
(
4
,
2
,
'g'
,
plateau
)
elephant1
.
pousser
()
elephant2
.
pousser
()
self
.
assertEqual
(
elephant2
.
coords
,
(
3
,
2
))
self
.
assertEqual
(
elephant1
.
coords
,
(
4
,
2
))
# def test_initialiserPlateau(self):
# for k in range(1, 4):
...
...
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