Merge branch 'master' into master

This commit is contained in:
Sajeeb Ahamed
2021-10-06 00:00:47 +06:00
committed by GitHub
55 changed files with 421 additions and 347 deletions

View File

@@ -6,20 +6,20 @@ import {
FibonacciMatrixExpo
} from '../Fibonacci'
describe('Fibonanci', () => {
it('should return an array of numbers for FibonnaciIterative', () => {
describe('Fibonacci', () => {
it('should return an array of numbers for FibonacciIterative', () => {
expect(FibonacciIterative(5)).toEqual(
expect.arrayContaining([1, 1, 2, 3, 5])
)
})
it('should return an array of numbers for FibonnaciRecursive', () => {
it('should return an array of numbers for FibonacciRecursive', () => {
expect(FibonacciRecursive(5)).toEqual(
expect.arrayContaining([1, 1, 2, 3, 5])
)
})
it('should return number for FibonnaciRecursiveDP', () => {
it('should return number for FibonacciRecursiveDP', () => {
expect(FibonacciRecursiveDP(5)).toBe(5)
})
@@ -29,7 +29,7 @@ describe('Fibonanci', () => {
)
})
it('should return number for FibonnaciMatrixExpo', () => {
it('should return number for FibonacciMatrixExpo', () => {
expect(FibonacciMatrixExpo(0)).toBe(0)
expect(FibonacciMatrixExpo(1)).toBe(1)
expect(FibonacciMatrixExpo(2)).toBe(1)