示例#1
0
 def test10(self):
     self.assertEqual(hw2.bestWord(['b', 'b', 'b', 'l', 'r', 'a', 'e']), ['babble', 12])
示例#2
0
 def test08(self):
     self.assertEqual(hw2.bestWord(['a', 's', 'm', 't', 'p']), ['spam', 8])
示例#3
0
 def test09(self):
     self.assertEqual(hw2.bestWord(['g', 'y', 'e']), ['', 0])
示例#4
0
 def test07(self):
     self.assertEqual(hw2.bestWord(['a']), ['a', 1])
示例#5
0
 def test10(self):
     self.assertEqual(hw2.bestWord(['b', 'b', 'b', 'l', 'r', 'a', 'e']),
                      ['babble', 12])
示例#6
0
 def test09(self):
     self.assertEqual(hw2.bestWord(['g', 'y', 'e']), ['', 0])
示例#7
0
 def test08(self):
     self.assertEqual(hw2.bestWord(['a', 's', 'm', 't', 'p']), ['spam', 8])
示例#8
0
 def test07(self):
     self.assertEqual(hw2.bestWord(['a']), ['a', 1])