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 {
76
76
use proptest:: prelude:: * ;
77
77
use proptest:: {
78
78
arbitrary:: { Arbitrary , StrategyFor } ,
79
- prelude:: * ,
80
79
strategy:: Map ,
81
80
} ;
82
81
use serde_json:: json;
@@ -105,11 +104,9 @@ mod tests {
105
104
assert_eq ! ( parse( "h*e-l/lo" ) , CleanString :: from( "hello" ) ) ;
106
105
}
107
106
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 ( ) ;
114
111
}
115
112
}
You can’t perform that action at this time.
0 commit comments