-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7797ad4
commit 39963c8
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import boa | ||
from boa.test import strategy | ||
from hypothesis import given, settings # noqa | ||
|
||
from tests.fixtures.pool import INITIAL_PRICES | ||
from tests.utils.tokens import mint_for_testing | ||
|
||
SETTINGS = {"max_examples": 100, "deadline": None} | ||
|
||
|
||
@given( | ||
amount=strategy( | ||
"uint256", min_value=10**10, max_value=10**6 * 10**18 | ||
), | ||
split_in=strategy( | ||
"uint256", min_value=0, max_value=100 | ||
), | ||
split_out=strategy( | ||
"uint256", min_value=0, max_value=100 | ||
), | ||
i=strategy("uint", min_value=0, max_value=1), | ||
j=strategy("uint", min_value=0, max_value=1), | ||
) | ||
@settings(**SETTINGS) | ||
def test_exchange_split( | ||
swap_with_deposit, | ||
views_contract, | ||
coins, | ||
user, | ||
amount, | ||
split_in, | ||
split_out, | ||
i, | ||
j | ||
): | ||
pass |