mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Add test for foldl'
This commit is contained in:
parent
22a754c091
commit
d700eecea9
2 changed files with 4 additions and 0 deletions
1
tests/lang/eval-okay-foldlStrict.exp
Normal file
1
tests/lang/eval-okay-foldlStrict.exp
Normal file
|
@ -0,0 +1 @@
|
||||||
|
500500
|
3
tests/lang/eval-okay-foldlStrict.nix
Normal file
3
tests/lang/eval-okay-foldlStrict.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
with import ./lib.nix;
|
||||||
|
|
||||||
|
builtins.foldl' (x: y: x + y) 0 (range 1 1000)
|
Loading…
Reference in a new issue