Repository navigation
parallel-letter-frequency: create isolated reference runner and verif… - #89
Open
utkarsh21022009-boop wants to merge 1 commit into
Open
utkarsh21022009-boop wants to merge 1 commit into
utkarsh21022009-boop wants to merge 1 commit into
Conversation
…y test suite (R58-T009)
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…y test suite (R58-T009)
Pull Request
Pull Request
R58-T009: parallel-letter-frequency: create isolated reference runner and verify test suite
Description
Implements an isolated, focused runner for
parallel-letter-frequencyfor Task R58-T009. Resolves solution, test, and reference paths dynamically fromexercises/practice/parallel-letter-frequency/.meta/config.json. Copies the exercise (including dotfiles) to an isolated temporary directory, substitutes the maintained reference intosrc/main/java/ParallelLetterFrequency.java, enables all 13 JUnit 5 canonical test cases exclusively in the temporary copy, and executes./gradlew test --no-daemon. Reports exact case counts (13 executed, 13 passed) and verifies that the anchor test caselarge texts(testing text containing"it's the result of forty years underground! Allow me to indulge my fancy.") and all other@DisplayNamecases pass against the reference. Confirms failure propagation for a deliberately broken mutant reference and rejection of an empty test selection. Ensures temporary scratch directories are cleaned up and proves that the unsolved working-tree learner starter stub (UnsupportedOperationException) remains completely untouched (SHA-256 integrity verified before and after each run).Related Issue
Fixes: #9
Type of Change
Changes Made
docs/maintenance/parallel-letter-frequency.md:.meta/config.jsondynamic file resolution.build/,.gradle/).large texts) and reproduction instructions.tools/course_checks/r58-t009.py:work/R58-T009/check.py.work/R58-T009/check.py:subprocessand isolated temporary scratch directories..meta/config.jsonand validates path sanitization and containment.@DisplayNameannotations againsttests.tomlandParallelLetterFrequencyTest.java.UnsupportedOperationExceptionand SHA-256 hashes unchanged).work/R58-T009/README.md:work/R58-T009/results.jsonandlatest-result.json:Screenshots / Recordings
Not applicable — no UI changes.
Testing
python3 work/R58-T009/check.pyandpython3 tools/course_checks/r58-t009.py.exercises/practice/parallel-letter-frequency.missing file.missing file.escapes exercise.tests.toml.large textscontaining text"it's the result of forty years underground! Allow me to indulge my fancy."verified present and passing.--tests NoSuchClass): correctly rejected with non-zero exit and 0 executed tests.exercises/practice/parallel-letter-frequency/src/main/java/ParallelLetterFrequency.javaverified untouched and unsolved (UnsupportedOperationException).Checklist
Additional Notes
student/e26b07f0710/R58-T009(andR58-T009).S-AI-Projects/exercism-javaonmain.Reviewer Resources:
Track Policies
Reviewer Resources:
Track Policies