From 5ac1931f72c1b04ff1bd30ddc653280e43d130e6 Mon Sep 17 00:00:00 2001 From: Miko <100534556+jamienorthman@users.noreply.github.com> Date: Mon, 18 Sep 2023 23:06:29 +0200 Subject: [PATCH] Added test cases for 0 and string 0 --- 10_fibonacci/fibonacci.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/10_fibonacci/fibonacci.spec.js b/10_fibonacci/fibonacci.spec.js index 7f62213..7617791 100644 --- a/10_fibonacci/fibonacci.spec.js +++ b/10_fibonacci/fibonacci.spec.js @@ -16,9 +16,15 @@ describe('fibonacci', () => { test.skip('25th fibonacci number is 75025', () => { expect(fibonacci(25)).toBe(75025); }); + test('0th fibonacci number is o', () => { + expect(fibonacci(0)).toBe(0); + }); test.skip('doesn\'t accept negatives', () => { expect(fibonacci(-25)).toBe("OOPS"); }); + test.skip('DOES accept strings', () => { + expect(fibonacci("0")).toBe(0); + }); test.skip('DOES accept strings', () => { expect(fibonacci("1")).toBe(1); });