Commit 76beaa0d authored by Stefanie Hasler's avatar Stefanie Hasler

working

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