Skip to content

Commit

Permalink
Merge pull request JS-Challenges#42 from fusupo/master
Browse files Browse the repository at this point in the history
improves exponent 'optimize for even numbers' test
  • Loading branch information
mybrainishuge authored Oct 6, 2016
2 parents a297dd8 + a7640e4 commit e784608
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 e784608

Please sign in to comment.