f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
12 lines
328 B
Nix
12 lines
328 B
Nix
{ runCommand, concatText, writeText, hello, emptyFile }:
|
|
let
|
|
stri = writeText "pathToTest";
|
|
txt1 = stri "abc";
|
|
txt2 = stri hello;
|
|
res = concatText "textToTest" [ txt1 txt2 ];
|
|
in
|
|
runCommand "test-concatPaths" { } ''
|
|
diff -U3 <(cat ${txt1} ${txt2}) ${res}
|
|
diff -U3 ${concatText "void" []} ${emptyFile}
|
|
touch $out
|
|
''
|