aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-any-all.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-okay-any-all.nix')
-rw-r--r--test/testdata/eval-okay-any-all.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-any-all.nix b/test/testdata/eval-okay-any-all.nix
new file mode 100644
index 0000000..a3f26ea
--- /dev/null
+++ b/test/testdata/eval-okay-any-all.nix
@@ -0,0 +1,11 @@
1with builtins;
2
3[ (any (x: x == 1) [])
4 (any (x: x == 1) [2 3 4])
5 (any (x: x == 1) [1 2 3 4])
6 (any (x: x == 1) [4 3 2 1])
7 (all (x: x == 1) [])
8 (all (x: x == 1) [1])
9 (all (x: x == 1) [1 2 3])
10 (all (x: x == 1) [1 1 1])
11]