26 lines
488 B
Python
26 lines
488 B
Python
#!/usr/bin/python
|
|
|
|
import unittest
|
|
|
|
import solver
|
|
|
|
|
|
class TestSolver(unittest.TestCase):
|
|
def test_scored_words(self):
|
|
"""Minimal end to end test."""
|
|
result = solver.scored_words()
|
|
|
|
expected = [
|
|
("cares", 139631),
|
|
("sanes", 139129),
|
|
("tares", 138755),
|
|
("bares", 138375),
|
|
("sales", 137491),
|
|
]
|
|
|
|
self.assertListEqual(result[:5], expected)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|