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

assert number equality within delta #93

Merged
merged 1 commit into from
Mar 3, 2023
Merged

assert number equality within delta #93

merged 1 commit into from
Mar 3, 2023

Conversation

pgrange
Copy link
Owner

@pgrange pgrange commented Jan 2, 2023

assert_within_delta <expected num> <actual num> <max delta>

Given an expectation of 5 and a delta of 2 this would match 3, 4, 5, 6, and 7

@pgrange pgrange changed the title Fixes #92 assert number equality within delta Jan 2, 2023
Copy link

@masukomi masukomi left a comment

Choose a reason for hiding this comment

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

overall 👍
but IF the intent was to not support decimal numbers that should be explicit in the docs, and if that wasn't the intent, then there's a bug. ;)

README.adoc Show resolved Hide resolved
README.adoc Show resolved Hide resolved
```
assert_within_delta <expected num> <actual num> <max delta>
```

Given an expectation of 5 and a delta of 2 this would match 3, 4, 5, 6, and 7
@pgrange pgrange marked this pull request as ready for review March 3, 2023 09:36
@pgrange pgrange merged commit 0f97767 into master Mar 3, 2023
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

2 participants