diff --git a/test/honey/sql_test.cljc b/test/honey/sql_test.cljc index 3fb91fa..577f932 100644 --- a/test/honey/sql_test.cljc +++ b/test/honey/sql_test.cljc @@ -1277,13 +1277,6 @@ ORDER BY id = ? DESC (is (= ["SELECT FOO(bar) AT TIME ZONE 'UTC'"] (sut/format {:select [[[:at-time-zone [:foo :bar] :UTC]]]})))) -(deftest unhashable-value-509 - (let [unhashable (reify Object - (toString [_] "unhashable") - (hashCode [_] (throw (ex-info "Unsupported" {}))))] - (is (= ["INSERT INTO table VALUES (?)" unhashable] - (sut/format {:insert-into :table :values [[unhashable]]}))))) - (deftest issue-512 (testing "select with metadata" (is (= ["SELECT DISTINCT * FROM table"] diff --git a/test/honey/unhashable_test.clj b/test/honey/unhashable_test.clj new file mode 100644 index 0000000..ab442c0 --- /dev/null +++ b/test/honey/unhashable_test.clj @@ -0,0 +1,10 @@ +(ns honey.unhashable-test + (:require [clojure.test :refer [deftest is]] + [honey.sql :as sut])) + +(deftest unhashable-value-509 + (let [unhashable (reify Object + (toString [_] "unhashable") + (hashCode [_] (throw (ex-info "Unsupported" {}))))] + (is (= ["INSERT INTO table VALUES (?)" unhashable] + (sut/format {:insert-into :table :values [[unhashable]]})))))