Test on_selection_changed with maxsplit

This commit is contained in:
Ryan Roden-Corrent 2016-09-11 18:19:16 -04:00
parent d651cc75b0
commit 52fdad8186

View File

@ -222,7 +222,10 @@ def test_update_completion(txt, expected, status_command_stub, completer_obj,
(":set fonts hints 'Comic Sans'|", '12px Hack',
":set fonts hints '12px Hack'|"),
(":set fonts hints 'Comic| Sans'", '12px Hack',
":set fonts hints '12px Hack'|")
":set fonts hints '12px Hack'|"),
# open has maxsplit=0, so treat the last two tokens as one and don't quote
(':open foo bar|', 'baz', ':open baz|'),
(':open foo| bar', 'baz', ':open baz|'),
])
def test_on_selection_changed(before, newtxt, after, completer_obj,
config_stub, status_command_stub,