Esempio n. 1
0
 def testEmpty(self):
     self.assertEqual(hw.scrabbleScore(''), 0, "Check your base case!")
Esempio n. 2
0
 def testW2(self):
     self.assertEqual(hw.scrabbleScore('w'), 4)
Esempio n. 3
0
 def testJONQUIL(self):
     self.assertEqual(hw.scrabbleScore('jonquil'), 23)
Esempio n. 4
0
 def testSYZYGY(self):
     self.assertEqual(hw.scrabbleScore('syzygy'), 25)
Esempio n. 5
0
 def testTWELVE(self):
     self.assertEqual(hw.scrabbleScore('twelve'), 12,
                      "``twelve'' is worth 12 points. Wooooooaaaahhhh")
 def testEmpty(self):
     self.assertEqual(hw.scrabbleScore(''), 0, "Check your base case!")
 def testJONQUIL(self):
     self.assertEqual(hw.scrabbleScore('jonquil'), 23)
 def testW2(self):
     self.assertEqual(hw.scrabbleScore('w'), 4)
 def testTWELVE(self):
     self.assertEqual(hw.scrabbleScore('twelve'), 12, "``twelve'' is worth 12 points. Wooooooaaaahhhh")
 def testSYZYGY(self):
     self.assertEqual(hw.scrabbleScore('syzygy'), 25)