Skip to content

Commit

Permalink
Add basic ns-meta-test
Browse files Browse the repository at this point in the history
Exposes issue #75
  • Loading branch information
PEZ authored and bbatsov committed Nov 5, 2019
1 parent a3534cc commit 1ccac8b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/orchard/meta_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,14 @@
(docs/clean-cache!)
(testing "Including see-also is skipped"
(is (not (contains? (m/var-meta (resolve 'clojure.set/union)) :see-also))))))

(deftest ns-meta-test
(testing "Includes a non-nil :file"
(is (some-> 'orchard.test-ns-dep
(find-ns)
(m/ns-meta)
:file))
(is (some-> 'orchard.test-no-defs ;; issue #75
(find-ns)
(m/ns-meta)
:file))))

0 comments on commit 1ccac8b

Please sign in to comment.