Skip to content

Commit

Permalink
Added trivial test.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Oct 20, 2011
1 parent ccb4744 commit 356e60b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/clj_redis/test/client.clj
@@ -0,0 +1,11 @@
(ns clj-redis.test.client
(:refer-clojure :exclude [get set keys type])
(:use [clojure.test]
[clj-redis.client]))

(deftest test-client
(let [db (init :url "redis://localhost")
[k v] ["foo" "bar"]]
(is (= "PONG" (ping db)))
(set db k v)
(is (= v (get db k)))))

0 comments on commit 356e60b

Please sign in to comment.