add test for #455 (which passes)

This commit is contained in:
Sean Corfield 2023-01-13 13:01:35 -08:00
parent 56823b8888
commit ca953e3c42

View file

@ -68,6 +68,10 @@
(is (= ["INTERVAL ? DAYS" 30] (is (= ["INTERVAL ? DAYS" 30]
(sut/format-expr [:interval 30 :days])))) (sut/format-expr [:interval 30 :days]))))
(deftest issue-455-null
(is (= ["WHERE (abc + ?) IS NULL" "abc"]
(sut/format {:where [:= [:+ :abc "abc"] nil]}))))
(deftest where-test (deftest where-test
(is (= ["WHERE id = ?" 1] (is (= ["WHERE id = ?" 1]
(#'sut/format-on-expr :where [:= :id 1])))) (#'sut/format-on-expr :where [:= :id 1]))))