Commit 3de410ce authored by Julien David's avatar Julien David
Browse files

bon test

parent 914986f3
Pipeline #3040 failed with stage
in 10 seconds
......@@ -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)
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)
Markdown is supported
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