AlgoDS-Examen2025/tests/test_ex5.py

22 lines
546 B
Python
Raw Normal View History

2025-01-28 12:52:19 +01:00
import unittest
2025-01-28 16:52:27 +01:00
from Ex5 import playMinitrisFastAndWell
2025-01-28 12:52:19 +01:00
class MyTestCase(unittest.TestCase):
def test_simple1(self):
2025-01-28 16:52:27 +01:00
self.assertEqual(
playMinitrisFastAndWell(3, 4, [((1, 0), (0, 0)), ((1, 0), (0, 0)), ((1, 0), (0, 0))]),
[[0, 0], [1, 0], [2, 0]]
)
def test_simple2(self):
self.assertEqual(
playMinitrisFastAndWell(3, 4, [((1, 0), (0, 0)), ((1, 1), (0, 1)), ((1, 1), (0, 0))]),
[[1, 0], [0, 0], [2, 0]]
)
2025-01-28 12:52:19 +01:00
if __name__ == '__main__':
unittest.main()