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

add swap() tests for Pool 5 #160

Merged
merged 14 commits into from
Dec 5, 2023
Merged

add swap() tests for Pool 5 #160

merged 14 commits into from
Dec 5, 2023

Conversation

uri-99
Copy link
Collaborator

@uri-99 uri-99 commented Nov 9, 2023

This PR adds the swap tests corresponding to the Pool 5, resolving issue #166

Before resolving this PR, the original swap tests PR #152 should be resolved.

@dubzn dubzn changed the base branch from main to test/swap December 1, 2023 16:20
@dubzn dubzn marked this pull request as ready for review December 1, 2023 16:24
@dubzn dubzn closed this Dec 1, 2023
@dubzn dubzn reopened this Dec 1, 2023
Copy link
Collaborator

@rcatalan98 rcatalan98 left a comment

Choose a reason for hiding this comment

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

Just a few minor changes and questions

crates/yas_core/src/tests/utils/swap_cases.cairo Outdated Show resolved Hide resolved
let pool_case = POOL_CASES()[5];
let (success_swap_cases, panic_swap_cases) = SWAP_CASES_POOL_5();
let expected_cases =
SWAP_EXPECTED_RESULTS_POOL_5(); //get random case, is never executed
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the meaning of this?

//get random case, is never executed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was a comment that is no longer necessary, it has now been removed

@uri-99 uri-99 merged commit 978415c into test/swap Dec 5, 2023
3 checks passed
@uri-99 uri-99 deleted the pool-5 branch December 5, 2023 19:59
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

4 participants