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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 review from lanej and a team as code owners April 16, 2024 22:00
Copy link
Contributor

@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.

🙌

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.

None yet

5 participants