Skip to content

Remove the index from the test case loop; simplify the cases object - #444

Merged
glennj merged 2 commits into
exercism:mainfrom
IsaacG:generator.no_idx
Aug 14, 2026
Merged

glennj merged 2 commits into
exercism:mainfrom
IsaacG:generator.no_idx

Conversation

@IsaacG

@IsaacG IsaacG commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summarized changes:

» g diff | grep '^[+-][^+-]' | sort | uniq -c
      1 +        "cases": cases,
      1 -        "cases": list(enumerate(cases)),
     77 +{% for case in cases %}
     77 -{% for idx, case in cases %}
     55 -    {% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     21 -  {% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     55 +    {% if not loop.first %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     21 +  {% if not loop.first %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip

IsaacG added 2 commits August 14, 2026 09:10
Summarized changes:

```
» g diff | grep '^[+-][^+-]' | sort | uniq -c
      1 +        "cases": cases,
      1 -        "cases": list(enumerate(cases)),
     77 +{% for case in cases %}
     77 -{% for idx, case in cases %}
      1 -# generated on 2026-06-30T17:59:19+00:00
      1 +# generated on 2026-08-13T17:20:33+00:00
     55 -    {% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     21 -  {% if idx == 0 %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     55 +    {% if loop.first %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
     21 +  {% if loop.first %}# {% endif %}[[ $BATS_RUN_SKIPPED == "true" ]] || skip
      1 -@test each_file_gets_its_own_forth {
      1 +@test "each input file has its own evaluator" {
      1 -@test macro_empty_definition {
      1 -@test macro_missing_semicolon {
      1 +@test "new word definition missing the required semicolon" {
      1 +@test "new word with empty definition" {
```
@IsaacG

IsaacG commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

+cc @glennj

@glennj
glennj merged commit 0213469 into exercism:main Aug 14, 2026
4 checks passed
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