AlgoDS-Examen2025/tests/test_ex4.py

22 lines
419 B
Python
Raw Normal View History

2025-01-28 12:52:19 +01:00
import unittest
2025-01-28 17:32:57 +01:00
from src.Ex4 import computeNbrOfDifferentSequences
2025-01-28 15:20:24 +01:00
2025-01-28 12:52:19 +01:00
class MyTestCase(unittest.TestCase):
def test_simple1(self):
2025-01-28 15:20:24 +01:00
self.assertEqual(
computeNbrOfDifferentSequences(1, 6, 3),
1
)
def test_simple2(self):
self.assertEqual(
computeNbrOfDifferentSequences(2, 6, 7),
6
)
2025-01-28 12:52:19 +01:00
if __name__ == '__main__':
unittest.main()