diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/fns-tests.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index 92dc18fa034..b180f30f285 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -624,6 +624,11 @@ | |||
| 624 | (should (eq (gethash b2 hash) | 624 | (should (eq (gethash b2 hash) |
| 625 | (funcall test b1 b2))))))) | 625 | (funcall test b1 b2))))))) |
| 626 | 626 | ||
| 627 | (ert-deftest test-nthcdr-simple () | ||
| 628 | (should (eq (nthcdr 0 'x) 'x)) | ||
| 629 | (should (eq (nthcdr 1 '(x . y)) 'y)) | ||
| 630 | (should (eq (nthcdr 2 '(x y . z)) 'z))) | ||
| 631 | |||
| 627 | (ert-deftest test-nthcdr-circular () | 632 | (ert-deftest test-nthcdr-circular () |
| 628 | (dolist (len '(1 2 5 37 120 997 1024)) | 633 | (dolist (len '(1 2 5 37 120 997 1024)) |
| 629 | (let ((cycle (make-list len nil))) | 634 | (let ((cycle (make-list len nil))) |