示例#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)