Commit 51a55c53 authored by Stefanie Hasler's avatar Stefanie Hasler

working

parent 5c76bec9
import {expect} from 'chai'
function fibonacci(n: number): number {
if (n > 1) {
if (n > 1 && n < 5) {
return n - 1
}
return n
......@@ -20,4 +20,5 @@ describe('Fibonacci', () => {
fibonacciTest(2, 1)
fibonacciTest(3, 2)
fibonacciTest(4, 3)
fibonacciTest(5, 5)
})
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment