Repository navigation
R35-T047: Publish a runnable example for main (main.py) - #88
Open
challengerthe026-maker wants to merge 1 commit into
Open
challengerthe026-maker wants to merge 1 commit into
challengerthe026-maker wants to merge 1 commit into
Conversation
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.
Description
This PR publishes executable documentation and runnable worked examples for
maininPassword Strength Checker/main.py, documenting the decisive input-to-output state transitions, providing backward-compatible programmatic invocation, and verifying the examples in automated tests.Related Issue
Fixes: #47
Type of Change
Changes Made
maindetailing preconditions, decisive state transitions, and executable worked examples for both weak and strong password classifications.passwordandpredict_fnwith seamless fallback toinput()andmodel.model.predictto preserve full backward compatibility for interactive CLI users while allowing headless testability.Password Strength Checker/test_main.pyexecuting the documented worked examples and verifying displayed stdout and return values for smallest input ("a"-> 0) and ordinary input ("MyP@ssw0rd!2026"-> 2).work/R35-T047/check.pyandwork/R35-T047/evidence.mdwith complete verification logs and automated pass/fail checks.Screenshots / Recordings
There are no UI changes.
Testing
python3 work/R35-T047/check.py: PASS (all assertion groups passed, worked examples verified, ran 3 unittest cases).FORCE_WRONG=1 python3 work/R35-T047/check.py: FAIL (correctly caught deliberate mismatch and exited with code 1).python3 -m unittest discover -s "Password Strength Checker" -p "test_*.py": PASS (Ran 3 tests, OK).Checklist
Additional Notes
Work evidence and standalone check runner are located under
work/R35-T047/.