mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Add more tests on ein:list-move-left/right
This commit is contained in:
parent
f25e3b98a7
commit
562d67797d
1 changed files with 4 additions and 2 deletions
|
@ -103,7 +103,8 @@ def func():
|
|||
(should (equal (ein:list-move-left '(a b c d) 'a) '(b c d a)))
|
||||
(should (equal (ein:list-move-left '(a b c d) 'b) '(b a c d)))
|
||||
(should (equal (ein:list-move-left '(a b c d) 'c) '(a c b d)))
|
||||
(should (equal (ein:list-move-left '(a b c d) 'd) '(a b d c))))
|
||||
(should (equal (ein:list-move-left '(a b c d) 'd) '(a b d c)))
|
||||
(should-error (ein:list-move-left '(a b c d) 'X)))
|
||||
|
||||
(ert-deftest ein:list-move-right ()
|
||||
(should (equal (ein:list-move-right '(a) 'a) '(a)))
|
||||
|
@ -112,4 +113,5 @@ def func():
|
|||
(should (equal (ein:list-move-right '(a b c d) 'a) '(b a c d)))
|
||||
(should (equal (ein:list-move-right '(a b c d) 'b) '(a c b d)))
|
||||
(should (equal (ein:list-move-right '(a b c d) 'c) '(a b d c)))
|
||||
(should (equal (ein:list-move-right '(a b c d) 'd) '(d a b c))))
|
||||
(should (equal (ein:list-move-right '(a b c d) 'd) '(d a b c)))
|
||||
(should-error (ein:list-move-right '(a b c d) 'X)))
|
||||
|
|
Loading…
Add table
Reference in a new issue