[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 0cb2b32485 323/500: Add a failing test that check
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 0cb2b32485 323/500: Add a failing test that checks the indentation of function bodies. |
Date: |
Sat, 29 Jan 2022 08:27:17 -0500 (EST) |
branch: elpa/nix-mode
commit 0cb2b324850f4f0725d3641a03c85fe451377d25
Author: Jakub Piecuch <j.piecuch96@gmail.com>
Commit: Jakub Piecuch <j.piecuch96@gmail.com>
Add a failing test that checks the indentation of function bodies.
---
tests/nix-mode-tests.el | 4 ++++
tests/testcases/smie-lambdas.nix | 26 ++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/tests/nix-mode-tests.el b/tests/nix-mode-tests.el
index 7aa3995415..a6b3eb68c1 100644
--- a/tests/nix-mode-tests.el
+++ b/tests/nix-mode-tests.el
@@ -188,5 +188,9 @@ Related issue: https://github.com/NixOS/nix-mode/issues/72"
"Proper indentation of strings in a multi-line string."
(with-nix-mode-test ("issue-78.nix" :indent 'smie-indent-line)))
+(ert-deftest nix-mode-test-indent-lambdas-smie ()
+ "Proper indentation of function bodies."
+ (with-nix-mode-test ("smie-lambdas.nix" :indent 'smie-indent-line)))
+
(provide 'nix-mode-tests)
;;; nix-mode-tests.el ends here
diff --git a/tests/testcases/smie-lambdas.nix b/tests/testcases/smie-lambdas.nix
new file mode 100644
index 0000000000..d33596d6ca
--- /dev/null
+++ b/tests/testcases/smie-lambdas.nix
@@ -0,0 +1,26 @@
+{ foo, bar }:
+{ foo, bar } @ baz:
+foo: bar:
+
+{
+ test1 =
+ { f = x:
+ 42 };
+
+ test2 = x:
+ 42;
+
+ test3 = map (x:
+ 42) [ 1 2 3 ];
+
+ test4 =
+ { f = x: y: z:
+ 42 };
+
+ test2 = x: y: z:
+ 42;
+
+ test3 = map (x: y: z:
+ 42) [ 1 2 3 ];
+}
+
- [nongnu] elpa/nix-mode ae1f5253be 478/500: nix-flake: Add documentation to README, (continued)
- [nongnu] elpa/nix-mode ae1f5253be 478/500: nix-flake: Add documentation to README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9d8dc3c8d8 495/500: Merge pull request #143 from akirak/fix-flake-switching, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e7bf2e4cc4 489/500: Merge pull request #140 from akirak/flake-transient, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1f922d78eb 291/500: Fix regex regression that caused the indent to indent too much, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9ebf7389eb 298/500: Merge branch 'etu-fix-issue-72', ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d5a53e2050 300/500: Indent using SMIE - initial working version., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8118355e81 306/500: Change smie indent functions in a cleaner (and correct) way., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9d1d025cb7 313/500: Use "check" as test target, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8812eec39a 314/500: Allow using nix-indent-region without arguments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 29a93838bb 316/500: Add hello.nix to tests, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0cb2b32485 323/500: Add a failing test that checks the indentation of function bodies.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 79507ee193 327/500: Add more test cases to smie-lambdas.nix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 37f641a913 434/500: Add menu to nix search mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode f38d4e9b37 459/500: Remove f dependency, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3cca5b6527 452/500: Merge pull request #133 from nagy/small-fixes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 89755c1e7e 475/500: nix-flake: Fix the default value, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3865b7bc98 449/500: Specialize two defcustom types, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1b85a1986d 479/500: nix-flake: Use = key consistently to switch the flake, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7929f9623d 483/500: chore: Add transient to the dependencies, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 33b2edf8ac 005/500: set spacing to defaults, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 24e8281149 013/500: Refactor keywords, ELPA Syncer, 2022/01/29