diff options
| author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-10-03 21:56:53 +0200 |
|---|---|---|
| committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-10-03 21:56:53 +0200 |
| commit | d5743d926818a3e8cb43158c827d4aff409bf12c (patch) | |
| tree | 18c1aff55f410be0a01028275ed65ae12a80be44 /lib/fileset/tests.sh | |
| parent | libotr: fix cross (diff) | |
| download | nixpkgs-d5743d926818a3e8cb43158c827d4aff409bf12c.tar.gz | |
lib.fileset.unions: Fix outdated docs
Since 4f35f003e6e5b800be75e3985054e5fce2dea50a unions supports empty lists too
Diffstat (limited to 'lib/fileset/tests.sh')
| -rwxr-xr-x | lib/fileset/tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fileset/tests.sh b/lib/fileset/tests.sh index 525b8aaa9170..7fdbb3ede04f 100755 --- a/lib/fileset/tests.sh +++ b/lib/fileset/tests.sh @@ -415,7 +415,7 @@ expectFailure 'toSource { root = ./.; fileset = union ./. ./b; }' 'lib.fileset.u expectFailure 'toSource { root = ./.; fileset = unions [ ./a ./. ]; }' 'lib.fileset.unions: element 0 \('"$work"'/a\) does not exist.' expectFailure 'toSource { root = ./.; fileset = unions [ ./. ./b ]; }' 'lib.fileset.unions: element 1 \('"$work"'/b\) does not exist.' -# unions needs a list with at least 1 element +# unions needs a list expectFailure 'toSource { root = ./.; fileset = unions null; }' 'lib.fileset.unions: Expected argument to be a list, but got a null.' # The tree of later arguments should not be evaluated if a former argument already includes all files |
