summaryrefslogtreecommitdiff
path: root/10/test.py
blob: a311b2e31a0382bfaa75fdd57b2de706842656ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python

import unittest

import main



class ExamplesPart1(unittest.TestCase):
    def test_example1(self):
        self.assertEqual(main.play_round("1"), "11")

    def test_example2(self):
        self.assertEqual(main.play_round("11"), "21")

    def test_example3(self):
        self.assertEqual(main.play_round("21"), "1211")

    def test_example4(self):
        self.assertEqual(main.play_round("1211"), "111221")

    def test_example5(self):
        self.assertEqual(main.play_round("111221"), "312211")



if __name__ == "__main__":
    unittest.main()