Skip to content

Instantly share code, notes, and snippets.

@tcrayford
Created May 21, 2010 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrayford/408827 to your computer and use it in GitHub Desktop.
Save tcrayford/408827 to your computer and use it in GitHub Desktop.
(deftest test-fn-location
(create-ns 'refactoring-test-fn-rename)
(with-ns 'refactoring-test-fn-rename
(clojure.core/refer-clojure)
(defn a [b] (inc b)))
(is (= (:line (meta (find-var 'refactoring-test-fn-rename/a)))
19))
(remove-ns 'refactoring-test-fn-rename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment