From c3a0019c4c2c5abcf9d0c8470105b46429494949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Br=C3=A5nemyr?= Date: Mon, 11 Sep 2023 18:51:12 +0200 Subject: [PATCH] Add testcase for case clause with macro --- test/erlfmt_format_SUITE.erl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/erlfmt_format_SUITE.erl b/test/erlfmt_format_SUITE.erl index 688861c..56f65ab 100644 --- a/test/erlfmt_format_SUITE.erl +++ b/test/erlfmt_format_SUITE.erl @@ -2696,6 +2696,13 @@ case_expression(Config) when is_list(Config) -> " {reply, ok, State}\n" " end.\n", 100 + ), + ?assertFormat( + "case 1 of ?macro(1); ?macro(2) end", + "case 1 of\n" + " ?macro(1);\n" + " ?macro(2)\n" + "end\n" ). receive_expression(Config) when is_list(Config) ->