AlgoDS-Examen2024/tests/test_ex2.py

22 lines
422 B
Python
Raw Normal View History

2025-01-16 11:01:55 +01:00
import unittest
2025-01-24 13:15:28 +01:00
from src.ex2_tv import startRecordingAt
2025-01-16 11:01:55 +01:00
class MyTestCase(unittest.TestCase):
def test_simple1(self):
self.assertEqual(
startRecordingAt([12, 22, 32, 42, 25, 12], 52),
2
)
def test_simple2(self):
self.assertEqual(
startRecordingAt([12, 22, 32, 42, 25, 12], 80),
3
)
if __name__ == '__main__':
unittest.main()