merge: Add test cases (#854)

This commit is contained in:
YATIN KATHURIA
2021-11-28 11:49:11 +05:30
committed by GitHub
parent cc34088aae
commit 027c0d6307
2 changed files with 31 additions and 10 deletions

View File

@ -0,0 +1,19 @@
import { fibonacci } from '../FibonacciNumberRecursive'
describe('FibonacciNumberRecursive', () => {
it('should return 0', () => {
expect(fibonacci(0)).toBe(0)
})
it('should return 1', () => {
expect(fibonacci(1)).toBe(1)
})
it('should return 5', () => {
expect(fibonacci(5)).toBe(5)
})
it('should return 9', () => {
expect(fibonacci(9)).toBe(34)
})
})