[fine] More tests and also comparisons

This commit is contained in:
John Doty 2024-01-15 09:43:56 -08:00
parent 55749af917
commit 7fb88ef199
5 changed files with 101 additions and 4 deletions

View file

@ -0,0 +1,16 @@
fun worst_fib(n: f64) -> f64 {
if n == 0 {
0
} else if n == 1 {
1
} else {
worst_fib(n-2) + worst_fib(n-1)
}
}
fun test() -> f64 {
worst_fib(10)
}
// @no-errors
// @eval: Float(55.0)