コード例 #1
0
ファイル: test.py プロジェクト: tyrostone/ScrabbleSolver
 def test_highest_score_multiple_option(self):
     s = ScrabbleSolver('set')
     highest = s.score()
     self.assertEqual('3, set', highest)
コード例 #2
0
ファイル: main.py プロジェクト: tyrostone/ScrabbleSolver
def main(rack):
    s = ScrabbleSolver(rack)
    print s.score()
コード例 #3
0
ファイル: test.py プロジェクト: tyrostone/ScrabbleSolver
 def test_highest_score_one_option(self):
     s = ScrabbleSolver('aa')
     highest = s.score()
     self.assertEqual('2, aa', highest)