mirror of https://gitlab.com/bashrc2/epicyon
Lower similarity threshold
parent
acc70ae594
commit
2bfc4fad10
4
tests.py
4
tests.py
|
@ -5752,14 +5752,14 @@ def _testWordsSimilarity() -> None:
|
|||
assert similarity > 70
|
||||
content1 = "<p>We're growing! </p><p>A new denizen " + \
|
||||
"is frequenting HackBucket. You probably know him already " + \
|
||||
"from his epic typos - but let's not spoil too much " + \
|
||||
"from her epic typos - but let's not spoil too much " + \
|
||||
"\ud83d\udd2e</p>"
|
||||
content2 = "<p>We're growing! </p><p>A new denizen " + \
|
||||
"is frequenting HackBucket. You probably know them already " + \
|
||||
"from their epic typos - but let's not spoil too much " + \
|
||||
"\ud83d\udd2e</p>"
|
||||
similarity = wordsSimilarity(content1, content2, minWords)
|
||||
assert similarity > 85
|
||||
assert similarity > 80
|
||||
|
||||
|
||||
def runAllTests():
|
||||
|
|
Loading…
Reference in New Issue