Skip to content

Commit c85c16f

Browse files
yuhan0bbatsov
authored andcommitted
Fix ns detection with namespaces containing numbers
1 parent fa3389a commit c85c16f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clojure-mode-util-test.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@
9292
(with-clojure-buffer "(ns foo+)"
9393
(expect (clojure-find-ns) :to-equal "foo+"))
9494
(with-clojure-buffer "(ns bar**baz$-_quux)"
95-
(expect (clojure-find-ns) :to-equal "bar**baz$-_quux")))
95+
(expect (clojure-find-ns) :to-equal "bar**baz$-_quux"))
96+
(with-clojure-buffer "(ns aoc-2019.puzzles.day14)"
97+
(expect (clojure-find-ns) :to-equal "aoc-2019.puzzles.day14")))
9698
(it "should support in-ns forms"
9799
(with-clojure-buffer "(in-ns 'bar.baz)"
98100
(expect (clojure-find-ns) :to-equal "bar.baz")))

0 commit comments

Comments
 (0)