From cbb71c3db9b790a536c2ba1baee352173b7926ac Mon Sep 17 00:00:00 2001 From: Mike Blume Date: Tue, 24 Feb 2015 14:35:28 -0800 Subject: [PATCH] test apply too --- test/honeysql/core_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/honeysql/core_test.clj b/test/honeysql/core_test.clj index 4bdabda..12dedab 100644 --- a/test/honeysql/core_test.clj +++ b/test/honeysql/core_test.clj @@ -48,7 +48,7 @@ m3 (sql/build m2) m4 (apply sql/build (apply concat m2))] (testing "Various construction methods are consistent" - (is (= m1 m3))) + (is (= m1 m3 m4))) (testing "SQL data formats correctly" (is (= (sql/format m1 {:param1 "gabba" :param2 2}) ["SELECT DISTINCT f.*, b.baz, c.quux, b.bla AS bla_bla, now(), @x := 10 FROM foo f, baz b INNER JOIN draq ON f.b = draq.x LEFT JOIN clod c ON f.a = c.d RIGHT JOIN bock ON bock.z = c.e WHERE ((f.a = ? AND b.baz <> ?) OR (1 < 2 AND 2 < 3) OR (f.e in (1, ?, 3)) OR f.e BETWEEN 10 AND 20) GROUP BY f.a HAVING 0 < f.e ORDER BY b.baz DESC, c.quux LIMIT 50 OFFSET 10 "