diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2013-08-15 16:29:23 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2013-08-15 16:29:23 +0300 |
commit | fbc19b622bcc8336bb8a26c67e251a722f6868ad (patch) | |
tree | eae7d0430dbcac627deabe978b5ef951498d1550 /test | |
parent | 7a1ca0434574a0b75494d9284b9f0d9d023b0143 (diff) |
Replace problematic cl-position with custom code
`cl-position` in Emacs 24.3 is not the same as the one in the cl-lib
library on GNU ELPA, which is causing problems for people using older
Emacsen. This commit replaces it with a bit of custom code.
This fixes #356.
Diffstat (limited to 'test')
-rw-r--r-- | test/nrepl-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nrepl-tests.el b/test/nrepl-tests.el index 8a632652..2f4c10ed 100644 --- a/test/nrepl-tests.el +++ b/test/nrepl-tests.el @@ -388,3 +388,7 @@ (should (equal (nrepl-repl-buffer-name) "*nrepl proj*<2>"))) (kill-buffer nrepl-new-buffer))))) + +(ert-deftest test-nrepl--find-rest-args-position () + (should (= (nrepl--find-rest-args-position [fmt & arg]) 1)) + (should (equal (nrepl--find-rest-args-position [fmt arg]) nil))) |