diff options
author | toofar <toofar@spalge.com> | 2023-12-21 12:28:22 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-12-21 12:28:22 +1300 |
commit | fe1faa14b91253db99e9b4451ffb1a479feff1db (patch) | |
tree | a45b0486a844433b62480f8f56c032f2f863aa25 /tests | |
parent | 04af4c657d3725fd2d3b556d9b88b44d3ada0be1 (diff) | |
parent | a0d1dd0f10bc72c9741370eaf1e4f75713ca5d42 (diff) | |
download | qutebrowser-fe1faa14b91253db99e9b4451ffb1a479feff1db.tar.gz qutebrowser-fe1faa14b91253db99e9b4451ffb1a479feff1db.zip |
Merge pull request #7955 from arza-zara/search_any_order
A few more completions will now match search terms in any order:
`:quickmark-*`, `:bookmark-*`, `:tab-take` and `:tab-select` (for the quick
and bookmark categories).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/completion/test_listcategory.py | 5 |
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.""" |