diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 19:08:44 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 19:08:44 +0100 |
commit | 5ad263c26b5b9cc0ba067050e4a09b2491c9d40c (patch) | |
tree | a9251f24871514ace96343edd0059580c379fbf4 /tests/lang/lib.nix | |
parent | 3d0a9ec8258fc2a6ec6a73e249aa38fbd03207d8 (diff) |
Test some more primops
Diffstat (limited to 'tests/lang/lib.nix')
-rw-r--r-- | tests/lang/lib.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lang/lib.nix b/tests/lang/lib.nix index cdba2b947..882005dc1 100644 --- a/tests/lang/lib.nix +++ b/tests/lang/lib.nix @@ -53,4 +53,9 @@ rec { const = x: y: x; + range = first: last: + if builtins.lessThan last first + then [] + else [first] ++ range (builtins.add first 1) last; + } |