summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHaidong Ji2020-05-21 21:46:55 -0500
committerHaidong Ji2020-05-21 21:46:55 -0500
commitb8349cfc102edc3964868c6ff3299e6537c36ae1 (patch)
tree5a2f2681148c028616099861763ab7d240c50f3d /tests
parent1cf5ca9ec07e2c3c125f075c10b2ba713dbc7c7c (diff)
Check if DAG graph done!
Diffstat (limited to 'tests')
-rw-r--r--tests/test_acyclicity.py13
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()