premier kata pour les stagiaires
This commit is contained in:
6
kata/python/fizzbuzz.py
Normal file
6
kata/python/fizzbuzz.py
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
def fizzbuzz(nombre):
|
||||
return 1
|
||||
|
||||
for nombre in range(1, 101):
|
||||
print(nombre)
|
9
kata/python/fizzbuzz_test.py
Normal file
9
kata/python/fizzbuzz_test.py
Normal file
@ -0,0 +1,9 @@
|
||||
import unittest
|
||||
from fizzbuzz import *
|
||||
|
||||
class FizzbuzzTest(unittest.TestCase):
|
||||
def test_un_renvoie_un(self):
|
||||
self.assertEqual(1, fizzbuzz(1))
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Reference in New Issue
Block a user