Skip to content

Commit

Permalink
Add testcase for case clause with macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ztion authored and michalmuskala committed Sep 12, 2023
1 parent 4fc600b commit c3a0019
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/erlfmt_format_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit c3a0019

Please sign in to comment.