aboutsummaryrefslogtreecommitdiff
path: root/challenge-101/tyler-wardhaugh/python/test_ch2.py
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-02-26 05:30:27 +0000
committerGitHub <noreply@github.com>2021-02-26 05:30:27 +0000
commite3f222baca9d7a3e745a5f38b2a80f910c2c8844 (patch)
tree3ec736fbee9bb91dee801e0aa7064b5e584ed425 /challenge-101/tyler-wardhaugh/python/test_ch2.py
parentd0797a82194198d2e17e0c867b6f71e143499a51 (diff)
parent7ee7cb632f67d902f69df08aa3df56224a68dacd (diff)
downloadperlweeklychallenge-club-e3f222baca9d7a3e745a5f38b2a80f910c2c8844.tar.gz
perlweeklychallenge-club-e3f222baca9d7a3e745a5f38b2a80f910c2c8844.tar.bz2
perlweeklychallenge-club-e3f222baca9d7a3e745a5f38b2a80f910c2c8844.zip
Merge pull request #3619 from tylerw/tw/challenge-101
Challenge 101
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()