def test_2222227(self): message = '2222227' n = 13 self.assertEqual(len(decoder(message)), n)
def test_11113(self): message = '11113' n = 8 self.assertEqual(len(decoder(message)), n)
def test_basic_output(self): message = '111' result = ('aaa', 'ka', 'ak') self.assertListEqual(sorted(list(decoder(message))), sorted(list(result)))
def test_basic_output_len(self): message = '111' result = ('aaa', 'ka', 'ak') n = len(result) self.assertEqual(len(decoder(message)), n)