Beispiel #1
0
 def test_forO2B8O1B8O7B6O10B8O4B10_required_28_seconds(self):
     self.assertEqual(
         28,
         seconds_required(sequence=[
             'O 2', 'B 8', 'O 1', 'B 8', 'O 7', 'B 6', 'O 10', 'B 8', 'O 4',
             'B 10'
         ]))
Beispiel #2
0
 def test_for_O_5_O_8_B_100_required_seconds(self):
     self.assertEqual(100,
                      seconds_required(sequence=['O 5', 'O 8', 'B 100']))
Beispiel #3
0
 def test_for_B_2_B_1_is_required_4_seconds(self):
     self.assertEqual(4, seconds_required(sequence=['B 2', 'B 1']))
Beispiel #4
0
 def test_for_O_2_B_1_B_2_O_4_is_required_6_seconds(self):
     self.assertEqual(
         6, seconds_required(sequence=['O 2', 'B 1', 'B 2', 'O 4']))
Beispiel #5
0
 def test_for_B_2_is_required_2_seconds(self):
     self.assertEqual(2, seconds_required(sequence=[
         'B 2',
     ]))
Beispiel #6
0
 def test_for_B_1_is_required_1_second(self):
     self.assertEqual(1, seconds_required(sequence=[
         'B 1',
     ]))
Beispiel #7
0
 def test_for_B_14_is_required_14_seconds(self):
     self.assertEqual(14, seconds_required(sequence=[
         'B 14',
     ]))
Beispiel #8
0
 def test_for_O_1_O_1_is_required_2_seconds(self):
     self.assertEqual(2, seconds_required(sequence=['O 1', 'O 1']))