-
Notifications
You must be signed in to change notification settings - Fork 7
Tuple fuzzers #23
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
Tuple fuzzers #23
Conversation
|
Usecase example: https://github.com/Anastasia-Labs/aiken-linked-list/pull/6/files#diff-51e35fd3abb5d42a8369c9f66d32af9e2f278f41300d151945281397249a4835R227-R241 test mint_validator_insert(
(blake2b_224s, o_refs, now, penalty_address, contract_address) via fuzzer.tuple5(
blake2b_224_fuzzer(count: 3),
fuzz.set_between(output_reference_fuzzer(), 2, 2),
fuzz.int_at_least(1000),
address_fuzzer(
FromScript(Specified(mock_script_hash("P"))),
WithFuzzedDelegation,
),
address_fuzzer(
FromScript(Specified(mock_script_hash("I"))),
WithFuzzedDelegation,
),
),
) {
..
}Can also be combined with #22 |
|
Merged commits to main |
|
Hey @MicroProofs ,
|
|
|
|
It's for type-safety, for example: this works, but inside the test block you'll need to have If the With preventing accidental test failure during arrangement instead of assertion. |
Like,
..