diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_acyclicity.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_acyclicity.py b/tests/test_acyclicity.py new file mode 100644 index 0000000..2eb8577 --- /dev/null +++ b/tests/test_acyclicity.py @@ -0,0 +1,13 @@ +import unittest +from sources.acyclicity import acyclic + + +class MyTestCase(unittest.TestCase): + def test_something(self): + adj = [[1], [2], [0], [0]] + + self.assertEqual(1, acyclic(adj)) + + +if __name__ == '__main__': + unittest.main() |