changed project structure

This commit is contained in:
2025-01-16 10:48:44 +01:00
parent 151f8492b4
commit 107c338abe
5 changed files with 5 additions and 2 deletions

0
tests/__init__.py Normal file
View File

20
tests/test_ex1.py Normal file
View File

@ -0,0 +1,20 @@
import unittest
from src.ex1_triangles import countTriangles
class MyTestCase(unittest.TestCase):
def test_simple1(self):
self.assertEqual(
countTriangles([(0, 1), (1, 2), (0, 2)]),
1
)
def test_simple2(self):
self.assertEqual(
countTriangles([(2, 1), (1, 2), (2, 3)]),
0
)
if __name__ == '__main__':
unittest.main()