Skip to content

tests: fix test_numbered for parse >= 1.22.2 - #26

Open
stanislavlevin wants to merge 1 commit into
jenisys:mainfrom
stanislavlevin:issue_25
Open

stanislavlevin wants to merge 1 commit into
jenisys:mainfrom
stanislavlevin:issue_25

Conversation

@stanislavlevin

Copy link
Copy Markdown

parse 1.22.2 changed the regex for the "f" format type to also match "nan" and "inf" (r1chardj0n3s/parse#250), so the expected expression in test_numbered no longer matched.

Pick the expected float pattern based on the installed parse version, so the test passes with both older and newer parse versions.

See for details:
r1chardj0n3s/parse#250

Fixes: #25

parse 1.22.2 changed the regex for the "f" format type to also match
"nan" and "inf" (r1chardj0n3s/parse#250), so the expected expression
in test_numbered no longer matched.

Pick the expected float pattern based on the installed parse version,
so the test passes with both older and newer parse versions.

See for details:
r1chardj0n3s/parse#250

Fixes: jenisys#25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Stanislav Levin <slev@altlinux.org>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[self tests] test_numbered fails with parse 1.22.2+

1 participant