From b8349cfc102edc3964868c6ff3299e6537c36ae1 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Thu, 21 May 2020 21:46:55 -0500 Subject: Check if DAG graph done! --- tests/test_acyclicity.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_acyclicity.py (limited to 'tests') 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() -- cgit v1.2.3