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
Julien David
lipn-search
Commits
3de410ce
Commit
3de410ce
authored
Apr 06, 2021
by
Julien David
Browse files
bon test
parent
914986f3
Pipeline
#3040
failed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
index_inverse/test/test_hamming.py
View file @
3de410ce
...
...
@@ -3,15 +3,13 @@ sys.path.append('../src')
from
hamming
import
hamming
import
unittest
class
TestHamming
(
unittest
.
TestCase
):
def
test_hamming
(
self
):
result
=
hamming
(
"mais"
,
"mats"
)
self
.
assertEqual
(
result
,
1
)
result
=
hamming
(
"mais"
,
"mats"
)
self
.
assertEqual
(
result
,
1
)
def
test_taille_differente
(
self
):
self
.
assertEqual
(
hamming
(
"truc"
,
"truc plus long"
),
-
1
)
def
test_faux
(
self
):
self
.
assertEqual
(
hamming
(
"truc"
,
"truc plus long"
),
1
)
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