Permalink
Browse files

Added trivial test.

  • Loading branch information...
1 parent ccb4744 commit 356e60b71c21472d5e85c6e4ecb48058289f75bb @technomancy technomancy committed Oct 20, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 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.