From e788f447e46760cc68c99a605e1d0b0820184304 Mon Sep 17 00:00:00 2001 From: Tyler Wardhaugh Date: Wed, 20 Jan 2021 10:05:39 -0800 Subject: Ch96 (Python): Tasks 1 & 2 --- challenge-096/tyler-wardhaugh/python/test_ch1.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 challenge-096/tyler-wardhaugh/python/test_ch1.py (limited to 'challenge-096/tyler-wardhaugh/python/test_ch1.py') 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() -- cgit