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:
1 parent
0639113205
commit
414380740f
2 files changed
+59
-52
No files matched your search
+4
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user