From 2228a6dcbe516700cd6abadbdc136602d9e58335 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Thu, 3 May 2012 19:55:06 +0400 Subject: [PATCH] How about you don't stop writing tests in the middle, Michael? --- test/monger/test/cache_test.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/monger/test/cache_test.clj b/test/monger/test/cache_test.clj index 85c9516..1834482 100644 --- a/test/monger/test/cache_test.clj +++ b/test/monger/test/cache_test.clj @@ -2,7 +2,8 @@ (:require [monger.test.helper :as helper] [monger.collection :as mc]) (:use clojure.core.cache clojure.test monger.cache) - (:import [clojure.core.cache BasicCache FIFOCache LRUCache TTLCache])) + (:import [clojure.core.cache BasicCache FIFOCache LRUCache TTLCache] + java.util.UUID)) ;; ;; Playground/Tests. These were necessary because clojure.core.cache has @@ -92,7 +93,8 @@ (testing "that has? returns false for misses" (let [coll "basic_monger_cache_entries" c (basic-monger-cache-factory coll)] - )) + (is (not (has? c (str (UUID/randomUUID))))) + (is (not (has? c (str (UUID/randomUUID))))))) (testing "that has? returns true for hits" (let [coll "basic_monger_cache_entries" c (basic-monger-cache-factory coll {"a" 1 "b" "cache" "c" 3/4})]