Skip to content

Commit

Permalink
add test for formals indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Coltharp committed Sep 26, 2024
1 parent 5a7c6bd commit c55ceef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/nix-ts-mode-indent-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ output is identical to the given expression."
(lambda ()
(nix-ts-mode)
(indent-region (point-min) (point-max)))))

(ert-deftest nix-formals ()
(ert-test-erts-file (ert-resource-file "indent-formals.erts")
(lambda ()
(nix-ts-mode)
(indent-region (point-min) (point-max)))))
15 changes: 15 additions & 0 deletions test/resources/indent-formals.erts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Name: simple-formals

=-=
{
x,
y,
...
}: 42
=-=
{
x,
y,
...
}: 42
=-=-=

0 comments on commit c55ceef

Please sign in to comment.