summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cider-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cider-tests.el b/test/cider-tests.el
index 7b0774b5..11755e54 100644
--- a/test/cider-tests.el
+++ b/test/cider-tests.el
@@ -558,3 +558,9 @@
(should (equal (cider--deep-vector-to-list 'bug) 'bug))
(should (equal (cider--deep-vector-to-list '[bug]) '(bug)))
(should (equal (cider--deep-vector-to-list '(bug)) '(bug))))
+
+(ert-deftest cider-project-name ()
+ (should (equal (cider-project-name nil) "-"))
+ (should (equal (cider-project-name "") "-"))
+ (should (equal (cider-project-name "path/to/project") "project"))
+ (should (equal (cider-project-name "path/to/project/") "project")))