aboutsummaryrefslogtreecommitdiff
path: root/challenge-099/tyler-wardhaugh/python/test_ch1.py
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-02-12 18:03:33 +0000
committerGitHub <noreply@github.com>2021-02-12 18:03:33 +0000
commitfc7b7ef385b18f9fd5a4949bc8378d74d75edb39 (patch)
treedfd51195571dd9d65b912056d60c7d7106fbd93d /challenge-099/tyler-wardhaugh/python/test_ch1.py
parent97eeb3234d425957f0ac10956eefcec454ae8478 (diff)
parentbd2c088a7fcdc46926aaa3d428714b3850a3a154 (diff)
downloadperlweeklychallenge-club-fc7b7ef385b18f9fd5a4949bc8378d74d75edb39.tar.gz
perlweeklychallenge-club-fc7b7ef385b18f9fd5a4949bc8378d74d75edb39.tar.bz2
perlweeklychallenge-club-fc7b7ef385b18f9fd5a4949bc8378d74d75edb39.zip
Merge pull request #3503 from tylerw/tw/challenge-099
Challenge 099
Diffstat (limited to 'challenge-099/tyler-wardhaugh/python/test_ch1.py')
-rwxr-xr-xchallenge-099/tyler-wardhaugh/python/test_ch1.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/challenge-099/tyler-wardhaugh/python/test_ch1.py b/challenge-099/tyler-wardhaugh/python/test_ch1.py
new file mode 100755
index 0000000000..94e18be7b3
--- /dev/null
+++ b/challenge-099/tyler-wardhaugh/python/test_ch1.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import unittest
+from ch1 import pattern_match
+
+class TestTask1(unittest.TestCase):
+
+
+ def test_example_cases(self):
+ self.assertTrue(pattern_match("abcde", "a*e"))
+ self.assertFalse(pattern_match("abcde", "a*d"))
+ self.assertFalse(pattern_match("abcde", "?b*d"))
+ self.assertTrue(pattern_match("abcde", "a*c?e"))
+
+
+if __name__ == '__main__':
+ unittest.main()