small edit to ensure the new word was indeed new

This commit is contained in:
svlandeg 2020-10-10 21:05:28 +02:00
parent 68d79796c6
commit 3a505e7e14
1 changed files with 1 additions and 0 deletions

View File

@ -511,6 +511,7 @@ def test_kb_serialization():
mykb.to_disk(kb_dir)
nlp2 = English()
assert "RandomWord" not in nlp2.vocab.strings
nlp2.vocab.strings.add("RandomWord")
assert "RandomWord" in nlp2.vocab.strings
assert "Q2146908" not in nlp2.vocab.strings