Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Add tests for volume filter for non-nil base and exact mode#615

Merged
nikhilsaraf merged 10 commits intostellar-deprecated:masterfrom
debnil:vf-tests-base-exact
Dec 11, 2020
Merged

Add tests for volume filter for non-nil base and exact mode#615
nikhilsaraf merged 10 commits intostellar-deprecated:masterfrom
debnil:vf-tests-base-exact

Conversation

@debnil
Copy link
Copy Markdown
Contributor

@debnil debnil commented Dec 9, 2020

This PR adds tests for the volume filter for when the base cap is non-nil and the mode is Exact. Follow up to #611 and #614. Follow-up PR will add tests for non-nil quote and exact.

@debnil debnil requested a review from nikhilsaraf as a code owner December 9, 2020 23:51
Copy link
Copy Markdown
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

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

added two small inline comments, almost done!

Comment thread plugins/volumeFilter_test.go Outdated
Comment thread plugins/volumeFilter_test.go
Copy link
Copy Markdown
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 🎉

// it is not possible for otb = 0 && tbb = 0 and newAmount < 0, so skipping that case
{
name: "15. otb > 0 && tbb > 0; projected > cap",
name: "15. otb > 0 && tbb > 0; projected < cap",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@debnil this case is the < case, edited to fix

@nikhilsaraf nikhilsaraf merged commit 61e2303 into stellar-deprecated:master Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants