Convert solver functions into a solver class.

This is prep for having additional solvers that can be trivially
swapped in and out.
This commit is contained in:
dongar committed 2023-07-08 10:33:54 -05:00
1 parent 0639113205
commit 414380740f
2 files changed
+59 -52

No files matched your search

+4 -2
View File
@@ -6,9 +6,11 @@ import solver
class TestSolver(unittest.TestCase):
def test_scored_words(self):
def test_SimilaritySolver(self):
"""Minimal end to end test."""
result = solver.scored_words()
solve = solver.SimilaritySolver()
result = solve.scored_words()
expected = [
("cares", 139631),