Commit 0ff66308 authored by Stefanie Hasler's avatar Stefanie Hasler

working

parent 6446143f
......@@ -10,11 +10,12 @@ function fibonacci(n: number): number {
//0, 1, 1, 2, 3, 5, 8, 13, 21, 34,
describe('Fibonacci', () => {
const test = (input: number, output: number) => {
expect(fibonacci(input)).to.equal(output)
it(`${input} is ${output}`, () => {
expect(fibonacci(input)).to.equal(output)
})
}
it('0 is 0', () => {
test(0, 0)
})
it('1 is 1', () => {
expect(fibonacci(1)).to.equal(1)
......
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