aboutsummaryrefslogtreecommitdiff
path: root/challenge-101/tyler-wardhaugh/python/test_ch2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-101/tyler-wardhaugh/python/test_ch2.py')
-rwxr-xr-xchallenge-101/tyler-wardhaugh/python/test_ch2.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/challenge-101/tyler-wardhaugh/python/test_ch2.py b/challenge-101/tyler-wardhaugh/python/test_ch2.py
new file mode 100755
index 0000000000..9cbce4b371
--- /dev/null
+++ b/challenge-101/tyler-wardhaugh/python/test_ch2.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+"""Test Task 2"""
+
+import unittest
+from ch2 import contains_origin
+
+
+class TestTask2(unittest.TestCase):
+ """Test Task 2"""
+
+ def test_example_cases(self):
+ """Test Task 2"""
+ self.assertFalse(contains_origin([[0, 1], [1, 0], [2, 2]]))
+ self.assertTrue(contains_origin([[1, 1], [-1, 1], [0, -3]]))
+ self.assertTrue(contains_origin([[0, 1], [2, 0], [-6, 0]]))
+
+
+if __name__ == '__main__':
+ unittest.main()