From d700eecea9a274c1b45549141f40180ac74454ce Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 2 Mar 2020 17:27:48 +0100 Subject: [PATCH] Add test for foldl' --- tests/lang/eval-okay-foldlStrict.exp | 1 + tests/lang/eval-okay-foldlStrict.nix | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tests/lang/eval-okay-foldlStrict.exp create mode 100644 tests/lang/eval-okay-foldlStrict.nix 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)