Added missing test for previous commit
This commit is contained in:
parent
5485e3e5b2
commit
fd4e65e4ae
1 changed files with 17 additions and 0 deletions
|
@ -2089,6 +2089,23 @@ def f():
|
||||||
(python-nav-backward-up-list)
|
(python-nav-backward-up-list)
|
||||||
(should (looking-at "def f():"))))
|
(should (looking-at "def f():"))))
|
||||||
|
|
||||||
|
(ert-deftest python-indent-dedent-line-backspace-1 ()
|
||||||
|
"Check de-indentation on first call. Bug#18319."
|
||||||
|
(python-tests-with-temp-buffer
|
||||||
|
"
|
||||||
|
if True:
|
||||||
|
x ()
|
||||||
|
if False:
|
||||||
|
"
|
||||||
|
(python-tests-look-at "if False:")
|
||||||
|
(call-interactively #'python-indent-dedent-line-backspace)
|
||||||
|
(should (zerop (current-indentation)))
|
||||||
|
;; XXX: This should be a call to `undo' but it's triggering errors.
|
||||||
|
(insert " ")
|
||||||
|
(should (= (current-indentation) 4))
|
||||||
|
(call-interactively #'python-indent-dedent-line-backspace)
|
||||||
|
(should (zerop (current-indentation)))))
|
||||||
|
|
||||||
|
|
||||||
;;; Shell integration
|
;;; Shell integration
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue