2025-01-16 11:21:53 +01:00
|
|
|
import unittest
|
|
|
|
|
2025-01-24 13:15:28 +01:00
|
|
|
from src.ex3_cards import tauntScore
|
2025-01-16 11:21:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
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()
|