From a82e1d2a4a3ef68a85ee97922c33e8b64390c97c Mon Sep 17 00:00:00 2001 From: David Rolle Date: Wed, 29 Nov 2023 16:23:56 +0100 Subject: [PATCH] Test cursive/zprint mode with 1st arg on same line --- cljfmt/test/cljfmt/core_test.cljc | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/cljfmt/test/cljfmt/core_test.cljc b/cljfmt/test/cljfmt/core_test.cljc index d6e7e71..a3e8404 100644 --- a/cljfmt/test/cljfmt/core_test.cljc +++ b/cljfmt/test/cljfmt/core_test.cljc @@ -10,13 +10,18 @@ (deftest test-indent (testing "list indentation" - (is (reformats-to? - ["(foo bar" - "baz" - "quz)"] - ["(foo bar" - " baz" - " quz)"])) + (are [fn-args-indent] + (reformats-to? + ["(foo bar" + "baz" + "quz)"] + ["(foo bar" + " baz" + " quz)"] + {:function-arguments-indentation fn-args-indent}) + :community + :cursive + :zprint) (are [fn-args-indent expected] (reformats-to?