Skip to content

Commit c1442b2

Browse files
Jinseop Kimkommen
authored andcommitted
Fix for error in clojure-expected-ns
When call `clojure-expected-ns` function without arguments, error occured.
1 parent f9758bc commit c1442b2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

clojure-mode-util-test.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@
4242
(cl-letf (((symbol-function 'clojure-project-relative-path)
4343
(lambda (&optional current-buffer-file-name)
4444
project-relative-clj-file-path)))
45-
(should (string= (clojure-expected-ns clj-file-path) clj-file-ns)))))
45+
(should (string= (clojure-expected-ns clj-file-path) clj-file-ns))))
46+
47+
(ert-deftest expected-ns-without-argument ()
48+
:tags '(utils)
49+
(cl-letf (((symbol-function 'clojure-project-relative-path)
50+
(lambda (&optional current-buffer-file-name)
51+
project-relative-clj-file-path)))
52+
(should (string= (let ((buffer-file-name clj-file-path))
53+
(clojure-expected-ns))
54+
clj-file-ns)))))
4655

4756
(provide 'clojure-mode-util-test)
4857

0 commit comments

Comments
 (0)