summaryrefslogtreecommitdiff
path: root/test/nrepl-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/nrepl-tests.el')
-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)))