Skip to content

Commit e784608

Browse files
Merge pull request JS-Challenges#42 from fusupo/master
improves exponent 'optimize for even numbers' test
2 parents a297dd8 + a7640e4 commit e784608

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/part1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,15 @@
309309
xit('optimize for even numbers', function() {
310310
exponent.reset();
311311
exponent(3,4);
312-
expect(exponent.callCount).to.equal(4);
312+
expect(exponent.callCount).to.be.at.most(4);
313313

314314
exponent.reset();
315315
exponent(12,5);
316-
expect(exponent.callCount).to.equal(5);
316+
expect(exponent.callCount).to.be.at.most(5);
317317

318318
exponent.reset();
319319
exponent(19,7);
320-
expect(exponent.callCount).to.equal(6);
320+
expect(exponent.callCount).to.be.at.most(6);
321321
});
322322

323323
// remove the 'x' to enable test

0 commit comments

Comments
 (0)