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
Is there a clear-cut way to parameterize const generics? I see #207 mentions generic types, but I'm not sure if those solutions translate here - I haven't figured out a method by which rstest can pass const values. I have an example where I parameterize the dimension of a struct and would like to use the same test for multiple const generics
pubstructSphere<constN:usize>{/// Radius of the spherepubr:f64,pubcenter:[f64;N],}// ...
Currently, I parameterize tests with a declarative macro but I'm curious as to whether rstest provides a cleaner option:
Is there a clear-cut way to parameterize const generics? I see #207 mentions generic types, but I'm not sure if those solutions translate here - I haven't figured out a method by which
rstest
can pass const values. I have an example where I parameterize the dimension of a struct and would like to use the same test for multiple const genericsCurrently, I parameterize tests with a declarative macro but I'm curious as to whether rstest provides a cleaner option:
The text was updated successfully, but these errors were encountered: