-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
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: