Skip to content

Commit

Permalink
Improve fibonacci test
Browse files Browse the repository at this point in the history
  • Loading branch information
neysofu committed Dec 23, 2024
1 parent 67f5498 commit f8d3709
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/oac/execution_tests/fibonacci.oa
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ fun fibonacci(n: I32) -> I32 {
}

fun main() -> I32 {
print(fibonacci(0))
print(fibonacci(1))
print(fibonacci(2))
print(fibonacci(3))
print(fibonacci(4))
print(fibonacci(5))
print(fibonacci(6))
i = 0
while lt(i 10) {
print(fibonacci(i))
i = sum(i 1)
}

return 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ expression: output
3
5
8
13
21
34

0 comments on commit f8d3709

Please sign in to comment.