From 2bfc4fad1079136136faec28fa34f5d59dcbf186 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Mon, 18 Oct 2021 17:33:42 +0100 Subject: [PATCH] Lower similarity threshold --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 8e2ea6ee4..f63a37c35 100644 --- a/tests.py +++ b/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():