Repository navigation
test(string): make verification repeatable for palindromeRearranging (R50-T045) - #93
Open
aniruddha-bongale wants to merge 1 commit into
Open
aniruddha-bongale wants to merge 1 commit into
aniruddha-bongale 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 addresses task R50-T045 for
palindromeRearranging. It documents the pure function determinism contract and lack of normalization policy inString/CheckRearrangePalindrome.jsciting precondition checks at Line 19 and 23, implements repeatability and input isolation tests across the stated fixture ("","a","aba","ab","abba"), and adds an automated check runnerwork/R50-T045/check.py.Related Issue
Fixes: #45
Type of Change
Changes Made
String/CheckRearrangePalindrome.jsciting precondition checks at Line 19 (typeof str !== 'string') and Line 23 (!str).String/test/CheckRearrangePalindrome.test.js:""(returns sentinel'Empty string'),"a"(returnstrue),"aba"(returnstrue),"ab"(returnsfalse), and"abba"(returnstrue).'Aa'returnsfalse,'AAaa'returnstrue).'Not a string'sentinel.work/R50-T045/check.pyand saved verifiable execution evidence inwork/R50-T045/results.json.Screenshots / Recordings
N/A (Algorithmic / unit testing suite)
Testing
npx prettier --check String/CheckRearrangePalindrome.js String/test/CheckRearrangePalindrome.test.js work/R50-T045/results.jsonnpm test -- String/test/CheckRearrangePalindrome.test.js(13 tests passed)python3 work/R50-T045/check.py(all checks and tool version captures passed)Checklist
Additional Notes