Closed stevendesu closed 5 years ago
I'll have to investigate why my unit tests are passing despite this extremely obvious bug in the search method:
for (let i = 1; 1 < idxs.length - 1; i++)
Should be:
for (let i = 1; i < idxs.length - 1; i++)
Looks like I was only testing for 1 and 2 search criteria. It broke with 3 or more.
I'll have to investigate why my unit tests are passing despite this extremely obvious bug in the search method:
Should be: