We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a297dd8 + a7640e4 commit e784608Copy full SHA for e784608
spec/part1.js
@@ -309,15 +309,15 @@
309
xit('optimize for even numbers', function() {
310
exponent.reset();
311
exponent(3,4);
312
- expect(exponent.callCount).to.equal(4);
+ expect(exponent.callCount).to.be.at.most(4);
313
314
315
exponent(12,5);
316
- expect(exponent.callCount).to.equal(5);
+ expect(exponent.callCount).to.be.at.most(5);
317
318
319
exponent(19,7);
320
- expect(exponent.callCount).to.equal(6);
+ expect(exponent.callCount).to.be.at.most(6);
321
});
322
323
// remove the 'x' to enable test
0 commit comments