AlgoDS-Examen2025/tests/test_ex5.py
LordBaryhobal 2fda876df3
Some checks failed
Python unit tests / unittests (push) Failing after 5s
added ex5
2025-01-28 16:52:27 +01:00

22 lines
546 B
Python

import unittest
from Ex5 import playMinitrisFastAndWell
class MyTestCase(unittest.TestCase):
def test_simple1(self):
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]]
)
if __name__ == '__main__':
unittest.main()