Skip to content

Commit

Permalink
Fix timeout, doc gen errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 19, 2024
1 parent a5710fc commit 86290c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions javascript/p0009.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
*
* @return {number}
*/
const MAX = 500;

exports.p0009 = function() {
const MAX = 500;
for (let c = 3; c < MAX; c++) {
let c_square = c * c;
for (let b = 2; b < c; b++) {
Expand Down
3 changes: 3 additions & 0 deletions javascript/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ for (question in answers) {
if (knownSlow.includes(question)) {
this.timeout(-1);
}
else {
this.timeout(60 * 1000);
}
assert.equal(answer, module[`p${formattedQuestion}`]());
});
it('should return take less than 1 minute', function(done) {
Expand Down

0 comments on commit 86290c4

Please sign in to comment.