AlgoDS-Examen2024/tests/test_ex3.py
LordBaryhobal c7c36f7717
All checks were successful
Python unit tests / unittests (push) Successful in 5s
added unittest CI/CD workflow
2025-01-24 15:04:02 +01:00

21 lines
384 B
Python

import unittest
from src.ex3_cards import tauntScore
class MyTestCase(unittest.TestCase):
def test_simple1(self):
self.assertEqual(
tauntScore([1, 3, 2, 2]),
5
)
def test_simple2(self):
self.assertEqual(
tauntScore([1, 3, 45, 12, 2, 12]),
58
)
if __name__ == '__main__':
unittest.main()