Skip to content

Revamp spec parsing to handle duplicate test names in different sections - #23

Merged
glennj merged 1 commit into
exercism:mainfrom
glennj:duplicated-test-names
Jun 7, 2026
Merged

Revamp spec parsing to handle duplicate test names in different sections#23
glennj merged 1 commit into
exercism:mainfrom
glennj:duplicated-test-names

Conversation

@glennj

@glennj glennj commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

This popped up while I was doing list-ops in the web editor. That exercise has lots of duplicated test names in different describe sections. The previous behaviour would be to only remember the last test of its name.
image

This iteration stores the "fully qualified" test name:

  • list-ops: append entries to a list and return the new list: empty lists
  • list-ops: concatenate a list of lists: empty lists
  • list-ops: filter list returning only values that satisfy the filter function: empty lists
  • and so on

@glennj
glennj requested a review from a team as a code owner June 6, 2026 17:18
@glennj
glennj merged commit c609e05 into exercism:main Jun 7, 2026
3 checks passed
@glennj

glennj commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

The test runner can now differentiate the test with their "fully qualified" names:
image

@glennj
glennj deleted the duplicated-test-names branch June 7, 2026 19:15
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.

2 participants