From ac947b1543bda1c911497ca801ba8959152ff2e9 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 6 Jan 2024 13:46:31 -0800 Subject: [PATCH] move problematic test to own ns this test is clj-only and also causes rendering problems for portal due to the #object[] in the rendered test report Signed-off-by: Sean Corfield --- test/honey/sql_test.cljc | 7 ------- test/honey/unhashable_test.clj | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 test/honey/unhashable_test.clj 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]]})))))