mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
More tests for ein:worksheet-end-of-cell-input (@prompt)
This commit is contained in:
parent
d488e2d724
commit
a654c35f23
1 changed files with 18 additions and 0 deletions
|
@ -486,6 +486,24 @@ NO-TRIM is passed to `ein:notebook-split-cell-at-point'."
|
|||
#'forward-line
|
||||
-1 "Cell 1"))
|
||||
|
||||
(ert-deftest ein:worksheet-beginning-of-cell-input-with-no-arg-at-prompt ()
|
||||
(ein:testing-beginning-of-cell-input 2 "Cell 1"
|
||||
(lambda () (forward-line -1))
|
||||
nil "Cell 0"))
|
||||
|
||||
(ert-deftest ein:worksheet-beginning-of-cell-input-with-arg-two-at-prompt ()
|
||||
(ein:testing-beginning-of-cell-input 2 "Cell 1"
|
||||
(lambda () (forward-line -1))
|
||||
2 "Cell 0"))
|
||||
|
||||
(ert-deftest ein:worksheet-beginning-of-cell-input-with-arg-minus-one-at-prompt
|
||||
()
|
||||
(ein:testing-beginning-of-cell-input 2 "Cell 0"
|
||||
;; I need two cells to make it fail
|
||||
;; without (forward-line -1)
|
||||
(lambda () (forward-line -1))
|
||||
-1 "Cell 0"))
|
||||
|
||||
(ert-deftest ein:worksheet-end-of-cell-input-with-no-arg ()
|
||||
(with-current-buffer (ein:testing-notebook-make-empty)
|
||||
(ein:testing-insert-cells-with-format 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue