From f032e6a724e8dc73b270bcb3d97b1dfcb38c1ba8 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 4 Jun 2025 09:15:53 +0200 Subject: [PATCH] test: verify unrelated text yields no similarity (#130) --- test/similarity/similarity.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/similarity/similarity.test.js b/test/similarity/similarity.test.js index 84e103f..a345a60 100644 --- a/test/similarity/similarity.test.js +++ b/test/similarity/similarity.test.js @@ -34,6 +34,7 @@ describe('similarityCheck', () => { check.setCacheEntry( 'where |X| and |Y| are the cardinalities of the two sets (i.e. the number of elements in each set). The Sørensen index equals twice the number of elements common to both sets divided by the sum of the number of elements in each set.', ); + expect(check.hasSimilarEntries('unrelated text')).to.be.false; }); }); });