Skip to content

Sort test cases by input length for easier debugging#51

Merged
NurettinSelim merged 1 commit intomainfrom
feature/sort-test-cases-by-length
Feb 25, 2026
Merged

Sort test cases by input length for easier debugging#51
NurettinSelim merged 1 commit intomainfrom
feature/sort-test-cases-by-length

Conversation

@NurettinSelim
Copy link
Copy Markdown
Collaborator

@NurettinSelim NurettinSelim commented Feb 25, 2026

Summary

  • Sort parsed test cases by input string length (ascending) in TestFileParser.parseTestFile() so shortest strings appear first in test results
  • Helps students trace failures manually starting from the simplest failing case
  • Single sort() call added before returning TestFileResult, covering both normal and timeout execution paths

Closes #50

Test plan

  • mvn clean compile — builds without errors
  • mvn test — all 503 existing tests pass
  • Verify that test result output lists shortest inputs first when running against a .test file

🤖 Generated with Claude Code

Sorts parsed test cases by input string length (ascending) so
shortest strings appear first in test results. This helps students
trace failures manually starting from the simplest failing cases.

Closes #50

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NurettinSelim NurettinSelim merged commit ada5a8d into main Feb 25, 2026
8 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.

Sorting the test-cases

1 participant