tests.concat: added empty case

This commit is contained in:
Pasquale 2022-01-04 23:14:50 +01:00
parent 5187d2cd8f
commit 86e2880d11
No known key found for this signature in database
GPG Key ID: 13160FFB4CEB03F2

View File

@ -1,4 +1,4 @@
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello }:
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }:
let
stri = writeText "pathToTest";
txt1 = stri "abc";
@ -7,5 +7,6 @@ let
in
runCommand "test-concatPaths" { } ''
diff -U3 <(cat ${txt1} ${txt2}) ${res}
diff -U3 ${concatText "void" []} ${emptyFile}
touch $out
''