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