Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.556 kB
(ns swank.test-swank.commands.contrib.swank-hyperdoc
(:use swank.commands.contrib.swank-hyperdoc :reload-all)
(:use clojure.test))
(defn emacs-package-fixture [f]
(binding [swank.core/*current-package* "user"]
(f)))
(use-fixtures :each emacs-package-fixture)
(deftest hyperdoc-test
(testing "hyperdoc for symbol"
(is (= '((clojure.core . "http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/list")) (hyperdoc-lookup "list"))))
(testing "hyperdoc for invalid symbol"
(is (nil? (hyperdoc-lookup "list1234")))))
Jump to Line
Something went wrong with that request. Please try again.