Commit e60ca556 authored by Stefanie Hasler's avatar Stefanie Hasler

working

parent 9a9420dc
......@@ -2,9 +2,12 @@ import { expect } from 'chai'
function fibonacci(n: number): number {
if(n === 2) {
return 1
}
return n
}
//0, 1, 1, 2, 3, 5, 8, 13, 21, 34,
describe('Fibonacci', () => {
it('0 is 0', () => {
expect(fibonacci(0)).to.equal(0)
......@@ -13,4 +16,8 @@ describe('Fibonacci', () => {
it('1 is 1', () => {
expect(fibonacci(1)).to.equal(1)
})
it('2 is 1', () => {
expect(fibonacci(2)).to.equal(1)
})
})
\ 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