Esempio n. 1
0
 def test_wow_such_much(self):
     self.assertEqual(wow_such_much(0, 0), [])
     self.assertEqual(wow_such_much(1, 0), [])
     self.assertEqual(wow_such_much(0, 1), ['suchmuch'])
     self.assertEqual(wow_such_much(-1, 1), ['-1', 'suchmuch'])
     self.assertEqual(wow_such_much(-5, 5),
         ['much', '-4', 'such', '-2', '-1', 'suchmuch', '1', '2', 'such', '4'])
Esempio n. 2
0
 def test_suchmuch_to_100(self):
     self.assertEqual(
         solution.wow_such_much(1, 100),
         ['1', '2', 'such', '4', 'much', 'such', '7', '8', 'such', 'much',
          '11', 'such', '13', '14', 'suchmuch', '16', '17', 'such', '19',
          'much', 'such', '22', '23', 'such', 'much', '26', 'such', '28',
          '29', 'suchmuch', '31', '32', 'such', '34', 'much', 'such', '37',
          '38', 'such', 'much', '41', 'such', '43', '44', 'suchmuch', '46',
          '47', 'such', '49', 'much', 'such', '52', '53', 'such', 'much',
          '56', 'such', '58', '59', 'suchmuch', '61', '62', 'such', '64',
          'much', 'such', '67', '68', 'such', 'much', '71', 'such', '73',
          '74', 'suchmuch', '76', '77', 'such', '79', 'much', 'such', '82',
          '83', 'such', 'much', '86', 'such', '88', '89', 'suchmuch', '91',
          '92', 'such', '94', 'much', 'such', '97', '98', 'such'])
Esempio n. 3
0
 def test_suchmuch_to_100(self):
     self.assertEqual(solution.wow_such_much(1, 100), [
         '1', '2', 'such', '4', 'much', 'such', '7', '8', 'such', 'much',
         '11', 'such', '13', '14', 'suchmuch', '16', '17', 'such', '19',
         'much', 'such', '22', '23', 'such', 'much', '26', 'such', '28',
         '29', 'suchmuch', '31', '32', 'such', '34', 'much', 'such', '37',
         '38', 'such', 'much', '41', 'such', '43', '44', 'suchmuch', '46',
         '47', 'such', '49', 'much', 'such', '52', '53', 'such', 'much',
         '56', 'such', '58', '59', 'suchmuch', '61', '62', 'such', '64',
         'much', 'such', '67', '68', 'such', 'much', '71', 'such', '73',
         '74', 'suchmuch', '76', '77', 'such', '79', 'much', 'such', '82',
         '83', 'such', 'much', '86', 'such', '88', '89', 'suchmuch', '91',
         '92', 'such', '94', 'much', 'such', '97', '98', 'such'
     ])
Esempio n. 4
0
 def test_suchmuch_to_1(self):
     self.assertEqual(solution.wow_such_much(1, 1), [])
Esempio n. 5
0
 def test_negative_suchmuch(self):
     self.assertEqual(solution.wow_such_much(16, 1), [])
Esempio n. 6
0
 def test_suchmuch_from_16_to_16(self):
     self.assertEqual(solution.wow_such_much(16, 16), [])
Esempio n. 7
0
 def test_suchmuch_to_16(self):
     self.assertEqual(
         solution.wow_such_much(1, 16),
         ['1', '2', 'such', '4', 'much', 'such', '7', '8', 'such', 'much',
          '11', 'such', '13', '14', 'suchmuch'])
Esempio n. 8
0
 def test_suchmuch_to_2(self):
     self.assertEqual(solution.wow_such_much(1, 2), ['1'])
Esempio n. 9
0
 def test_suchmuch_to_16(self):
     self.assertEqual(wow_such_much(1, 16), [
         '1', '2', 'such', '4', 'much', 'such', '7', '8', 'such', 'much',
         '11', 'such', '13', '14', 'suchmuch'
     ])
Esempio n. 10
0
 def test_suchmuch_to_1(self):
     self.assertEqual(solution.wow_such_much(1, 1), [])
Esempio n. 11
0
 def test_negative_suchmuch(self):
     self.assertEqual(solution.wow_such_much(16, 1), [])
Esempio n. 12
0
 def test_suchmuch_from_16_to_16(self):
     self.assertEqual(solution.wow_such_much(16, 16), [])
Esempio n. 13
0
 def test_suchmuch_to_2(self):
     self.assertEqual(solution.wow_such_much(1, 2), ['1'])