Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert expected for comparisons #19

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Conversation

bnbry
Copy link
Member

@bnbry bnbry commented Apr 16, 2024

This converts the expected values to a float before a < and > comparison to prevent potential issues around the parsing of integer values as strings when loading the YAML files. This is particularly of issue with flat million numbers which are persisted in YAML as 6e+06 which is treated as a string when the YAML is parsed.

Related:

This converts the expected values to a float before a `<` and `>`
comparison to prevent potential issues around the parsing of integer
values as strings when loading the YAML files. This is particularly of
issue with flat million numbers which are persisted in YAML as 6e+06
which is treated as a string when the YAML is parsed.
@bnbry bnbry requested a review from lanej as a code owner April 16, 2024 22:00
@bnbry bnbry requested a review from a team April 16, 2024 22:00
Copy link
Member

@lanej lanej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@Justintime50 Justintime50 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can we get a CHANGELOG entry here to accompany the version bump?

@nwithan8 nwithan8 self-requested a review April 16, 2024 22:48
Copy link
Member

@nwithan8 nwithan8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@ginog ginog merged commit 9d02b5e into master Oct 22, 2024
3 checks passed
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.

6 participants