Skip to content

Can't complete Pythagorean Triplet because skipped test is considered a failure. #1399

Closed
@irgeek

Description

@irgeek

The last test in the Pythagorean Triplet exercise is disabled because (according to #1324) it takes too long to run in the web UI. When I submit a solution for the exercise, though, it's marked as failed with just the last test failing.

Locally I've edited the pythagorean-triplet.spec.js file to change test.skip to test and all tests pass successfully. Is there something we're supposed to do to re-enable tests like this when we submit solutions? I tried submitting with my local pythagorean-triplet.spec.js file, but (as expected) that didn't actually change the behaviour.

I can't work out how I'm supposed to submit my solution and have it marked as correct.

test.skip('triplets for large number', () => {
expect(tripletsWithSum(30000)).toEqual([
[1200, 14375, 14425],
[1875, 14000, 14125],
[5000, 12000, 13000],
[6000, 11250, 12750],
[7500, 10000, 12500],
]);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingx:status/claimedSomeone is working on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions