summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2013-08-15 16:29:23 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2013-08-15 16:29:23 +0300
commitfbc19b622bcc8336bb8a26c67e251a722f6868ad (patch)
treeeae7d0430dbcac627deabe978b5ef951498d1550 /test
parent7a1ca0434574a0b75494d9284b9f0d9d023b0143 (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.el4
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)))