changed project structure
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
20
tests/test_ex1.py
Normal file
20
tests/test_ex1.py
Normal 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()
|
Reference in New Issue
Block a user