summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_listcategory.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/completion/test_listcategory.py')
-rw-r--r--tests/unit/completion/test_listcategory.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/completion/test_listcategory.py b/tests/unit/completion/test_listcategory.py
index b91f391bb..80bcb5c39 100644
--- a/tests/unit/completion/test_listcategory.py
+++ b/tests/unit/completion/test_listcategory.py
@@ -32,6 +32,11 @@ from qutebrowser.completion.models import listcategory
[('foo', 'bar'), ('bar', 'foo'), ('bar', 'bar')],
[('foo', 'bar'), ('bar', 'foo')],
[('foo', 'bar'), ('bar', 'foo')]),
+
+ ('foo bar',
+ [('foobar', ''), ('barfoo', ''), ('foobaz', '')],
+ [('barfoo', ''), ('foobar', '')],
+ [('foobar', ''), ('barfoo', '')]),
])
def test_set_pattern(pattern, before, after, after_nosort, model_validator):
"""Validate the filtering and sorting results of set_pattern."""