issue 529: do decimal test then string based on significant digits #582
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.
🗒️ Summary
This is a patch rather than fix. Doing the checks as given is not as simple as the code is leading on to be. Probably tests to because it will not really work that well when it becomes 1e-6 or some other random representation does not match well. Almost need to update the XML to specify the number of significant digits to do it right.
⚙️ Test Data and/or Report
Ignoring the product not found because it does not seem to be part of this ticket and is really that the supplied data is incomplete.
♻️ Related Issues
#529