コード例 #1
0
ファイル: hw1pr3tests.py プロジェクト: raxod502/HMC-Grader
 def testEmpty(self):
     self.assertEqual(hw.scrabbleScore(''), 0, "Check your base case!")
コード例 #2
0
ファイル: hw1pr3tests.py プロジェクト: raxod502/HMC-Grader
 def testW2(self):
     self.assertEqual(hw.scrabbleScore('w'), 4)
コード例 #3
0
ファイル: hw1pr3tests.py プロジェクト: raxod502/HMC-Grader
 def testJONQUIL(self):
     self.assertEqual(hw.scrabbleScore('jonquil'), 23)
コード例 #4
0
ファイル: hw1pr3tests.py プロジェクト: raxod502/HMC-Grader
 def testSYZYGY(self):
     self.assertEqual(hw.scrabbleScore('syzygy'), 25)
コード例 #5
0
ファイル: hw1pr3tests.py プロジェクト: raxod502/HMC-Grader
 def testTWELVE(self):
     self.assertEqual(hw.scrabbleScore('twelve'), 12,
                      "``twelve'' is worth 12 points. Wooooooaaaahhhh")
コード例 #6
0
 def testEmpty(self):
     self.assertEqual(hw.scrabbleScore(''), 0, "Check your base case!")
コード例 #7
0
 def testJONQUIL(self):
     self.assertEqual(hw.scrabbleScore('jonquil'), 23)
コード例 #8
0
 def testW2(self):
     self.assertEqual(hw.scrabbleScore('w'), 4)
コード例 #9
0
 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)