From cb2c19aced7feb7f375e17a2a597669624a80a8f Mon Sep 17 00:00:00 2001 From: RumovZ Date: Thu, 19 Nov 2020 09:28:19 +0100 Subject: [PATCH] Add Python test for tag whitespace Assert tag matches do not occur across different tags. --- pylib/tests/test_find.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylib/tests/test_find.py b/pylib/tests/test_find.py index ffa190fa6..e7adfafec 100644 --- a/pylib/tests/test_find.py +++ b/pylib/tests/test_find.py @@ -49,6 +49,9 @@ def test_findCards(): assert len(col.findCards("tag:*")) == 5 assert len(col.findCards("tag:\\*")) == 1 assert len(col.findCards("tag:%")) == 1 + assert len(col.findCards("tag:sheep_goat")) == 0 + assert len(col.findCards('"tag:sheep goat"')) == 0 + assert len(col.findCards('"tag:* *"')) == 0 assert len(col.findCards("tag:animal_1")) == 2 assert len(col.findCards("tag:animal\\_1")) == 1 assert not col.findCards("tag:donkey")