Skip to content

[bob] Sort test cases - #2662

Merged
IsaacG merged 1 commit into
exercism:mainfrom
IsaacG:bob.sort
Jun 27, 2026
Merged

[bob] Sort test cases#2662
IsaacG merged 1 commit into
exercism:mainfrom
IsaacG:bob.sort

Conversation

@IsaacG

@IsaacG IsaacG commented Jun 26, 2026

Copy link
Copy Markdown
Member

Sort test cases based on the response and their order in the instructions. First test the simple versions of each response. Then test the more complex versions, ordered by response.

This is a follow up to #2661

Sort test cases based on the response and their order in the instructions. First test the simple versions of each response. Then test the more complex versions, ordered by response.
@IsaacG
IsaacG merged commit 0bdd27d into exercism:main Jun 27, 2026
7 of 8 checks passed
@IsaacG
IsaacG deleted the bob.sort branch June 27, 2026 00:48
{
"uuid": "72bd5ad3-9b2f-4931-a988-dce1f5771de2",
"description": "other whitespace",
"uuid": "66953780-165b-4e7e-8ce3-4bcb80b6385a",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have appeared earlier, line 103, before the test case that re-implements it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think there’s a hard rule about that. For example, list-ops has tests that appear several slots after the ones they reimplement and svg-parsing has a test that implements the following test.

A test generator should be following the uuids not the test order to determine which test is reimplemented where.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What @BNAndras said. Nothing here should rely on the order of the cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants