Skip to content

Commit

Permalink
improves exponent 'optimize for even numbers' test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Christophe authored and Marc Christophe committed Oct 6, 2016
1 parent a297dd8 commit a7640e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/part1.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,15 @@
xit('optimize for even numbers', function() {
exponent.reset();
exponent(3,4);
expect(exponent.callCount).to.equal(4);
expect(exponent.callCount).to.be.at.most(4);

exponent.reset();
exponent(12,5);
expect(exponent.callCount).to.equal(5);
expect(exponent.callCount).to.be.at.most(5);

exponent.reset();
exponent(19,7);
expect(exponent.callCount).to.equal(6);
expect(exponent.callCount).to.be.at.most(6);
});

// remove the 'x' to enable test
Expand Down

0 comments on commit a7640e4

Please sign in to comment.