added ex4

This commit is contained in:
2025-01-28 15:20:24 +01:00
parent 3c100a08fe
commit 68ccc3c183
3 changed files with 57 additions and 1 deletions

View File

@ -1,8 +1,21 @@
import unittest
from Ex4 import computeNbrOfDifferentSequences
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
self.assertEqual(
computeNbrOfDifferentSequences(1, 6, 3),
1
)
def test_simple2(self):
self.assertEqual(
computeNbrOfDifferentSequences(2, 6, 7),
6
)
if __name__ == '__main__':
unittest.main()