typescript icon indicating copy to clipboard operation
typescript copied to clipboard

Spelling issue in Largest Series Product

Open meatball133 opened this issue 3 years ago • 0 comments

On a test the code is suppose to raise following error:

  xit('rejects negative span', () => {
    expect(() => largestProduct('12345', -1)).toThrow(
      new Error('Span must be greater than zero')
    )
  })

While it should only raise on negative values, therefore the error its raising should be: "Span must be greater or equal to zero"

meatball133 avatar Oct 09 '22 12:10 meatball133