tests.concat: added empty case
This commit is contained in:
parent
5187d2cd8f
commit
86e2880d11
|
@ -1,4 +1,4 @@
|
||||||
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello }:
|
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }:
|
||||||
let
|
let
|
||||||
stri = writeText "pathToTest";
|
stri = writeText "pathToTest";
|
||||||
txt1 = stri "abc";
|
txt1 = stri "abc";
|
||||||
|
@ -7,5 +7,6 @@ let
|
||||||
in
|
in
|
||||||
runCommand "test-concatPaths" { } ''
|
runCommand "test-concatPaths" { } ''
|
||||||
diff -U3 <(cat ${txt1} ${txt2}) ${res}
|
diff -U3 <(cat ${txt1} ${txt2}) ${res}
|
||||||
|
diff -U3 ${concatText "void" []} ${emptyFile}
|
||||||
touch $out
|
touch $out
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue