We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 007e777 commit 3fa8f11Copy full SHA for 3fa8f11
1 file changed
tests/test_cmd2.py
@@ -206,6 +206,17 @@ def test_history_with_span_end(base_app):
206
""")
207
assert out == expected
208
209
+def test_history_with_span_index_error(base_app):
210
+ run_cmd(base_app, 'help')
211
+ run_cmd(base_app, 'help history')
212
+ run_cmd(base_app, '!ls -hal :')
213
+ out = run_cmd(base_app, 'history "hal :"')
214
+ expected = normalize("""
215
+-------------------------[3]
216
+!ls -hal :
217
+""")
218
+ assert out == expected
219
+
220
221
def test_base_cmdenvironment(base_app):
222
out = run_cmd(base_app, 'cmdenvironment')
0 commit comments