File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/catalyst-toolbox/catalyst-toolbox/src/ideascale/models/de Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ mod tests {
7676 use proptest:: prelude:: * ;
7777 use proptest:: {
7878 arbitrary:: { Arbitrary , StrategyFor } ,
79- prelude:: * ,
8079 strategy:: Map ,
8180 } ;
8281 use serde_json:: json;
@@ -105,11 +104,9 @@ mod tests {
105104 assert_eq ! ( parse( "h*e-l/lo" ) , CleanString :: from( "hello" ) ) ;
106105 }
107106
108- proptest ! {
109- #[ test]
110- fn any_string_deserializes_to_clean_string( s in any:: <String >( ) ) {
111- let json = json!( s) ;
112- let _: CleanString = serde_json:: from_value( json) . unwrap( ) ;
113- }
107+ #[ proptest]
108+ fn any_string_deserializes_to_clean_string ( s : String ) {
109+ let json = json ! ( s) ;
110+ let _: CleanString = serde_json:: from_value ( json) . unwrap ( ) ;
114111 }
115112}
You can’t perform that action at this time.
0 commit comments