From 6c2c9438a7a1624a18bd96126c71d0562adca342 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Mon, 4 Jul 2016 19:04:05 -0400 Subject: [PATCH] More completer unit test cases. --- tests/unit/completion/test_completer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/completion/test_completer.py b/tests/unit/completion/test_completer.py index 3a8bf7b3f..bfb1f0718 100644 --- a/tests/unit/completion/test_completer.py +++ b/tests/unit/completion/test_completer.py @@ -195,6 +195,9 @@ def test_completion_item_next(completer_obj, cmd, completion_widget_stub, (':foo |', 'bar', True, 2, ':foo bar|'), (':foo |', 'bar', True, 1, ':foo bar |'), (':foo | bar', 'baz', False, 1, ':foo baz| bar'), + (':foo |', 'bar baz', True, 1, ":foo 'bar baz' |"), + (':foo |', '', True, 1, ":foo '' |"), + (':foo |', None, True, 1, ":foo |"), ]) def test_selection_changed(before, newtxt, count, quick_complete, after, completer_obj, cmd, completion_widget_stub,