mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Add Python test for tag whitespace
Assert tag matches do not occur across different tags.
This commit is contained in:
parent
785540bddc
commit
cb2c19aced
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue