diff --git a/test/honeysql/core_test.clj b/test/honeysql/core_test.clj index 12b55d9..f0ec2b1 100644 --- a/test/honeysql/core_test.clj +++ b/test/honeysql/core_test.clj @@ -153,3 +153,15 @@ {:param1 param1 :param2 param2 :param3 param3}))))) + +(deftest test-raw + (is (= ["1 + 1"] + (-> (select (sql/raw "1 + 1")) + (from :foo) + sql/format)))) + +(deftest test-call + (is (= ["min(?)" "time"] + (-> (select (sql/call :min "time")) + (from "table") + sql/format))))