File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 8282 (expect (clojure-find-ns) :to-equal " foo" ))
8383 (with-clojure-buffer " (ns ^:bar ^:baz foo)"
8484 (expect (clojure-find-ns) :to-equal " foo" )))
85+ (it " should find namespaces with spaces before ns form"
86+ (with-clojure-buffer " (ns foo)"
87+ (expect (clojure-find-ns) :to-equal " foo" )))
88+ (it " should skip namespaces within any comment forms"
89+ (with-clojure-buffer " (comment
90+ (ns foo))"
91+ (expect (clojure-find-ns) :to-equal nil ))
92+ (with-clojure-buffer " (ns foo)
93+ (comment
94+ (ns bar))"
95+ (expect (clojure-find-ns) :to-equal " foo" ))
96+ (with-clojure-buffer " (comment
97+ (ns foo))
98+ (ns bar)
99+ (comment
100+ (ns baz))"
101+ (expect (clojure-find-ns) :to-equal " bar" )))
85102 (it " should find namespace declarations with nested metadata and docstrings"
86103 (with-clojure-buffer " (ns ^{:bar true} foo)"
87104 (expect (clojure-find-ns) :to-equal " foo" ))
You can’t perform that action at this time.
0 commit comments