Exemplo n.º 1
0
 def testEmpty(self):
     self.assertEqual(hw.scrabbleScore(''), 0, "Check your base case!")
Exemplo n.º 2
0
 def testW2(self):
     self.assertEqual(hw.scrabbleScore('w'), 4)
Exemplo n.º 3
0
 def testJONQUIL(self):
     self.assertEqual(hw.scrabbleScore('jonquil'), 23)
Exemplo n.º 4
0
 def testSYZYGY(self):
     self.assertEqual(hw.scrabbleScore('syzygy'), 25)
Exemplo 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")
Exemplo n.º 10
0
 def testSYZYGY(self):
     self.assertEqual(hw.scrabbleScore('syzygy'), 25)