diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-03-02 17:27:48 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-03-04 11:43:48 +0100 |
commit | d700eecea9a274c1b45549141f40180ac74454ce (patch) | |
tree | ed538e526518211236e57d1a3bc97493d9a15fa9 /tests/lang | |
parent | 22a754c091f765061f59bef5ce091268493bb138 (diff) |
Add test for foldl'
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-okay-foldlStrict.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-foldlStrict.nix | 3 |
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) |