aboutsummaryrefslogtreecommitdiff
path: root/challenge-096/tyler-wardhaugh/python/test_ch1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-096/tyler-wardhaugh/python/test_ch1.py')
-rwxr-xr-xchallenge-096/tyler-wardhaugh/python/test_ch1.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/challenge-096/tyler-wardhaugh/python/test_ch1.py b/challenge-096/tyler-wardhaugh/python/test_ch1.py
new file mode 100755
index 0000000000..5f27496224
--- /dev/null
+++ b/challenge-096/tyler-wardhaugh/python/test_ch1.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+import unittest
+from ch1 import reverse_words
+
+class TestTask1(unittest.TestCase):
+
+
+ def test_example_cases(self):
+ self.assertEqual(
+ "Challenge Weekly The", reverse_words("The Weekly Challenge"))
+ self.assertEqual(
+ "family same the of part are Raku and Perl",
+ reverse_words(" Perl and Raku are part of the same family "))
+
+
+if __name__ == '__main__':
+ unittest.main()