diff options
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix index 9a22d85ac5f1..04cb52e033ae 100644 --- a/tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix @@ -1,7 +1,9 @@ let - fib' = i: n: m: if i == 0 + fib' = i: n: m: + if i == 0 then n else fib' (i - 1) m (n + m); fib = n: fib' n 1 1; -in fib 10 +in +fib 10 |