Commit feb3ab62 authored by Stefanie Hasler's avatar Stefanie Hasler

working

parent e60ca556
import { expect } from 'chai'
function fibonacci(n: number): number {
if(n === 2) {
return 1
if (n > 1) {
return n-1
}
return n
}
......@@ -20,4 +19,8 @@ describe('Fibonacci', () => {
it('2 is 1', () => {
expect(fibonacci(2)).to.equal(1)
})
it('3 is 2', () => {
expect(fibonacci(3)).to.equal(2)
})
})
\ 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