You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, it may be good to combine #[values(...)] and #[cases(...)] approach - e.g. when a certain combination of parameters must be given together.
This code already works, and will execute 4 times (since both params are given as having two possible values). The second parameter's tuple will always be used together:
#[rstest]fnmy_tester(#[values(1, 2)]param1:i32,#[values(('x', "xxx"), ('y', "yyy"))]param2:(char,&'static str),){let(param2a, param2b) = param2;// destructure second param into its components
...}
Proposal
Support param destructuring in the fn declaration:
In some cases, it may be good to combine
#[values(...)]
and#[cases(...)]
approach - e.g. when a certain combination of parameters must be given together.This code already works, and will execute 4 times (since both params are given as having two possible values). The second parameter's tuple will always be used together:
Proposal
Support param destructuring in the fn declaration:
The text was updated successfully, but these errors were encountered: