test: [expected failures] function-library fixtures pending spec decisions - #165
Draft
leongdl wants to merge 1 commit into
Draft
Conversation
…sed/) Three parked fixtures with dual-implementation observations: center() odd-padding and ASCII-only isdigit() are spec gaps where BOTH implementations agree (no divergence - the spec should document the de facto behaviour), and repr_py raw-newline emission is a bug in BOTH implementations per the explicit spec text. Details in proposed/README.md. Companion to conformance-func-lib-gaps. Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
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.
Important
Expected-failure / spec-question fixtures — do not expect these to pass. Parked in
EXPR/proposed/(not discovered by the runner). Each asserts a strawman expectation and must not move intojobs/until the spec question beside it is resolved or the bug is fixed. Details inproposed/README.md.Contents (3 fixtures, dual-implementation verified)
expr2.2.6--repr-py-newline-roundtrip— implementation bug in BOTH implementations:repr_py("a\nb")emits a raw newline inside the quotes (invalid Python literal;ast.literal_evalraises SyntaxError). §2.2.6 is explicit thatrepr_pyfollows Python'srepr, which escapes. Move tojobs/once fixed.expr2.2.4--center-odd-padding— spec gap, NO divergence: both implementations put the odd pad space on the RIGHT (matching Pythonstr.center). §2.2.4 is silent on the split. The spec should document the de facto behaviour; then this fixture (with corrected expectation) goes live.expr2.2.4--isdigit-unicode— spec ambiguity, NO divergence: both implementations returnfalseforisdigit("٣")(ASCII-only digits). §2.2.4 leaves "digit" undefined while §2.2.5 gives\dexplicit Unicode semantics. Note the Python openjd CLI here deviates from native Pythonstr.isdigit. The spec must define "digit"; the de facto agreement is ASCII-only.Companion to the green-fixture PR from branch
conformance-func-lib-gaps.