Пример #1
0
 def test_one_1min_cd_with_one_1m_song(self):
     result = rock(cds=1, size=1, songs=[1])
     self.assertEqual(result, 1)
Пример #2
0
 def test_one_2min_cd_with_two_1m_song(self):
     result = rock(cds=1, size=2, songs=[1, 1])
     self.assertEqual(result, 2)
Пример #3
0
 def test_cds2_size4_songs1421(self):
     result = rock(cds=2, size=4, songs=[1,4,2,1])
     self.assertEqual(result, 3)
Пример #4
0
 def test_cds2_size2_songs1111(self):
     result = rock(cds=2, size=2, songs=[1,1,1,1])
     self.assertEqual(result, 4)
Пример #5
0
 def test_one_1min_cd_with_one_1m_song(self):
     result = rock(cds=1, size=1, songs=[1])
     self.assertEqual(result, 1)
Пример #6
0
 def test_one_2min_cd_with_one_5min_and_one_1min_song(self):
     result = rock(cds=1, size=2, songs=[5,1])
     self.assertEqual(result, 1)
Пример #7
0
 def test_cds2_size2_songs1111(self):
     result = rock(cds=2, size=2, songs=[1, 1, 1, 1])
     self.assertEqual(result, 4)
Пример #8
0
 def test_cds2_size4_songs1421(self):
     result = rock(cds=2, size=4, songs=[1, 4, 2, 1])
     self.assertEqual(result, 3)
Пример #9
0
 def test_one_2min_cd_with_one_2min_and_two_1min_songs(self):
     result = rock(cds=1, size=2, songs=[2, 1, 1])
     self.assertEqual(result, 2)
Пример #10
0
 def test_one_2min_cd_with_three_1min_song(self):
     result = rock(cds=1, size=2, songs=[1, 1, 1])
     self.assertEqual(result, 2)
Пример #11
0
 def test_one_2min_cd_with_one_5min_and_one_1min_song(self):
     result = rock(cds=1, size=2, songs=[5, 1])
     self.assertEqual(result, 1)