Repository navigation
R35-T042: Define the supported boundaries of generate_fake_profiles (… - #83
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 defines and locks down the supported domain boundaries for
generate_fake_profilesinFake Profile/FakeProfile.pyby adding explicit boundary docstrings, enforcing the documented input validation contract, and adding focused unit tests and check runner evidence.Related Issue
Fixes: #42
Type of Change
Changes Made
generate_fake_profileswithinFake Profile/FakeProfile.pywith preconditions, boundary behaviors, and return guarantees.if num_profiles < 1: raise ValueError("Number of profiles must be greater than 0.")consistent with CLI validation established at line 78.Fake Profile/test_fake_profile.pyverifying smallest valid input (num_profiles = 1), interior valid input (num_profiles = 3), unsupported boundary cases (0and negative values), and non-mutation guarantees.work/R35-T042/check.pyandwork/R35-T042/evidence.mdwith complete boundary table and automated pass/fail verification.Screenshots / Recordings
There are no UI changes.
Testing
python3 work/R35-T042/check.py: PASS (all 4 boundary assertion groups passed, ran 5 unittest cases).FORCE_WRONG=1 python3 work/R35-T042/check.py: FAIL (correctly caught deliberate mismatch and exited with code 1).python3 -m unittest discover -s "Fake Profile" -p "test_*.py": PASS (Ran 5 tests, OK).Checklist
Additional Notes
Work evidence and standalone check runner are located under
work/R35-T042/.