   (:import java.io.File))
 
 (def path (str "test" File/separator "templates" File/separator))
+
+(deftest passthrough
+  (let [s "a b c d"]
+    (is (= s (render-string s {}))))
+  (let [s "{{blah}} a b c d"]
+    (is (= " a b c d" (render-string s {}))))
+  (let [s "{{blah}} a b c d"]
+    (is (= "blah a b c d" (render-string s {:blah "blah"}))))
+  ;; expected: (= s (render-string s {}))
+  ;; actual: java.lang.OutOfMemoryError: Java heap space
+  ;; lol.
+  (let [s "{a b c} \nd"]
+    (is (= s (render-string s {})))))
 
 (deftest inheritance
   (is

  ;; safe only works at the end
  #_(is (= "{\"foo\":27,\"dan\":\"awesome\"}"
         (render-string "{{f|safe|json}}" {:f {:foo 27 :dan "awesome"}})))
  (is (= "null" (render-string "{{f|json}}" {}))))

;;TODO
(deftest filter-chaining
  (is (= "ACBD18DB4CC2F85CEDEF654FCCC4A4D8"
         (render-string "{{f|hash:\"md5\"|upper}}" {:f "foo"}))))

(deftest filter-upper
  (is (= "FOO" (render-string "{{f|upper}}" {:f "foo"}))))

;; How do we handle nils ?
;; nils should return empty strings at the point of injection in a DTL library. - cma
(deftest filter-no-value
  (is (= "" (render-string "{{f|upper}}" {}))))

