diff options
author | Gabriel Volpe <volpegabriel@gmail.com> | 2024-04-15 19:18:41 +0200 |
---|---|---|
committer | Gabriel Volpe <volpegabriel@gmail.com> | 2024-04-15 19:18:41 +0200 |
commit | 7b687a59cd8ee5db7cfd8067943149dd0d9215cf (patch) | |
tree | 200497c8e7d4c6c249f929b9a9f3b90cccd6977d /lib | |
parent | d864c36d57b46d2e5215ee67b885dd8c4fe8b764 (diff) | |
download | nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar.gz nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar.bz2 nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar.lz nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar.xz nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.tar.zst nixlib-7b687a59cd8ee5db7cfd8067943149dd0d9215cf.zip |
lib/tests: apply lints
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tests/misc.nix | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index e15e110682fb..cf4a185c1468 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -75,7 +75,6 @@ let matchAttrs mergeAttrs meta - mkOption mod nameValuePair optionalDrvAttr @@ -118,7 +117,6 @@ let expr = (builtins.tryEval expr).success; expected = true; }; - testingDeepThrow = expr: testingThrow (builtins.deepSeq expr expr); testSanitizeDerivationName = { name, expected }: let @@ -1416,7 +1414,7 @@ runTests { }; testToPrettyMultiline = { - expr = mapAttrs (const (generators.toPretty { })) rec { + expr = mapAttrs (const (generators.toPretty { })) { list = [ 3 4 [ false ] ]; attrs = { foo = null; bar.foo = "baz"; }; newlinestring = "\n"; @@ -1430,7 +1428,7 @@ runTests { there test''; }; - expected = rec { + expected = { list = '' [ 3 @@ -1468,13 +1466,10 @@ runTests { expected = "«foo»"; }; - testToPlist = - let - deriv = derivation { name = "test"; builder = "/bin/sh"; system = "aarch64-linux"; }; - in { + testToPlist = { expr = mapAttrs (const (generators.toPlist { })) { value = { - nested.values = rec { + nested.values = { int = 42; float = 0.1337; bool = true; |