Skip to content

Commit

Permalink
seed planted directly to the problematic test
Browse files Browse the repository at this point in the history
  • Loading branch information
ansable committed Jun 18, 2019
1 parent 8b51589 commit 643cd0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from pattern import text
from random import seed
seed(0)

#---------------------------------------------------------------------------------------------------


Expand Down Expand Up @@ -93,6 +93,7 @@ def setUp(self):
def test_model(self):

# Assert SLP language model.
seed(0)
v = text.Model()
for i in range(2):
v.train("black", "JJ", previous=("the", "DT"), next=("cat", "NN"))
Expand Down

0 comments on commit 643cd0e

Please sign in to comment.