aboutsummaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-02 17:27:48 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-04 11:43:48 +0100
commitd700eecea9a274c1b45549141f40180ac74454ce (patch)
treeed538e526518211236e57d1a3bc97493d9a15fa9 /tests/lang
parent22a754c091f765061f59bef5ce091268493bb138 (diff)
Add test for foldl'
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/eval-okay-foldlStrict.exp1
-rw-r--r--tests/lang/eval-okay-foldlStrict.nix3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-foldlStrict.exp b/tests/lang/eval-okay-foldlStrict.exp
new file mode 100644
index 000000000..837e12b40
--- /dev/null
+++ b/tests/lang/eval-okay-foldlStrict.exp
@@ -0,0 +1 @@
+500500
diff --git a/tests/lang/eval-okay-foldlStrict.nix b/tests/lang/eval-okay-foldlStrict.nix
new file mode 100644
index 000000000..3b87188d2
--- /dev/null
+++ b/tests/lang/eval-okay-foldlStrict.nix
@@ -0,0 +1,3 @@
+with import ./lib.nix;
+
+builtins.foldl' (x: y: x + y) 0 (range 1 1000)