[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 29a93838bb 316/500: Add hello.nix to tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 29a93838bb 316/500: Add hello.nix to tests |
Date: |
Sat, 29 Jan 2022 08:27:17 -0500 (EST) |
branch: elpa/nix-mode
commit 29a93838bbece7e4dc5c18b4b2dcadc47f107f66
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Add hello.nix to tests
---
tests/nix-mode-tests.el | 12 ++++++++++++
tests/testcases/hello.nix | 26 ++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/tests/nix-mode-tests.el b/tests/nix-mode-tests.el
index db6d5a521e..b20e4a1765 100644
--- a/tests/nix-mode-tests.el
+++ b/tests/nix-mode-tests.el
@@ -164,5 +164,17 @@ Related issue: https://github.com/NixOS/nix-mode/issues/72"
Related issue: https://github.com/NixOS/nix-mode/issues/72"
(with-nix-mode-test ("issue-72.nix" :indent 'nix-indent-line)))
+(ert-deftest nix-mode-test-indent-hello-smie ()
+ "Proper indentation of strings in a multi-line string.
+
+Related issue: https://github.com/NixOS/nix-mode/issues/72"
+ (with-nix-mode-test ("hello.nix" :indent 'smie-indent-line)))
+
+(ert-deftest nix-mode-test-indent-hello ()
+ "Proper indentation of strings in a multi-line string.
+
+Related issue: https://github.com/NixOS/nix-mode/issues/72"
+ (with-nix-mode-test ("hello.nix" :indent 'nix-indent-line)))
+
(provide 'nix-mode-tests)
;;; nix-mode-tests.el ends here
diff --git a/tests/testcases/hello.nix b/tests/testcases/hello.nix
new file mode 100644
index 0000000000..63a8af99f7
--- /dev/null
+++ b/tests/testcases/hello.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ name = "hello-${version}";
+ version = "2.10";
+
+ src = fetchurl {
+ url = "mirror://gnu/hello/${name}.tar.gz";
+ sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i";
+ };
+
+ doCheck = true;
+
+ meta = with stdenv.lib; {
+ description = "A program that produces a familiar, friendly greeting";
+ longDescription = ''
+ GNU Hello is a program that prints "Hello, world!" when you run it.
+ It is fully customizable.
+ '';
+ homepage = https://www.gnu.org/software/hello/manual/;
+ changelog =
"https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}";
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.eelco ];
+ platforms = platforms.all;
+ };
+}
- [nongnu] elpa/nix-mode b1257d3ea6 461/500: Merge branch 'master' into store-path, (continued)
- [nongnu] elpa/nix-mode b1257d3ea6 461/500: Merge branch 'master' into store-path, ELPA Syncer, 2022/01/29
- [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 <=
- [nongnu] elpa/nix-mode 0cb2b32485 323/500: Add a failing test that checks the indentation of function bodies., ELPA Syncer, 2022/01/29
- [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