diff --git a/test/honeysql/format_test.clj b/test/honeysql/format_test.clj index 26f90bc..f35db3f 100644 --- a/test/honeysql/format_test.clj +++ b/test/honeysql/format_test.clj @@ -18,6 +18,11 @@ :foo-bar "foo_bar") (is (= (quote-identifier "*" :style :ansi) "*"))) +(deftest test-dashed-quote + (binding [*allow-dashed-names?* true] + (is (= (quote-identifier :foo-bar) "foo-bar")) + (is (= (quote-identifier :foo-bar :style :ansi) "\"foo-bar\"")))) + (deftest test-cte (is (= (format-clause (first {:with [[:query {:select [:foo] :from [:bar]}]]}) nil)