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

test: add incomplete tests #90

Merged
merged 3 commits into from
Feb 8, 2022
Merged

test: add incomplete tests #90

merged 3 commits into from
Feb 8, 2022

Conversation

parv3213
Copy link
Member

@parv3213 parv3213 commented Jan 3, 2022

No description provided.

@parv3213 parv3213 self-assigned this Jan 3, 2022
@parv3213
Copy link
Member Author

parv3213 commented Jan 3, 2022

@parv3213

This comment was marked as outdated.

toETHNumber(
meTokenDetails.balanceLocked.sub(newMeTokenDetails.balanceLocked)
)
).to.be.approximately(lockedAmount, 1e-13);
Copy link
Member Author

Choose a reason for hiding this comment

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

@carlfarterson @zgorizzo69 here the precision is lesser than usual, 1e-15. As these calculations don't require a timestamp, I am not sure why there is less precision.
Note: when this file is tested separately the calculations are exactly matching.

Copy link
Collaborator

Choose a reason for hiding this comment

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

indeed I am able to reproduce

Copy link
Member

Choose a reason for hiding this comment

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

Thoughts on why this is failing? @zgorizzo69 ?

@parv3213
Copy link
Member Author

parv3213 commented Feb 7, 2022

@carlfarterson @zgorizzo69 this can be merged now

toETHNumber(
meTokenDetails.balanceLocked.sub(newMeTokenDetails.balanceLocked)
)
).to.be.approximately(lockedAmount, 1e-13);
Copy link
Collaborator

Choose a reason for hiding this comment

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

indeed I am able to reproduce

@pegahcarter pegahcarter merged commit d64c27d into main Feb 8, 2022
@pegahcarter pegahcarter deleted the test/incomplete-tests branch February 10, 2022 01:20
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.

3 participants