aboutsummaryrefslogtreecommitdiff
path: root/challenge-096/tyler-wardhaugh/python/test_ch1.py
blob: 5f2749622480038a68891df11d43f7569fc993b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()