File tree 2 files changed +12
-1
lines changed
proptest-macro/src/property_test/codegen
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mod test_body;
14
14
/// - implement `Arbitrary` for that struct (simple field-wise impl)
15
15
/// - create a runner, do the rest
16
16
///
17
- /// Currently, any attributes on fields are ignored - in the future, we probably want to read
17
+ /// Currently, any attributes on parameters are ignored - in the future, we probably want to read
18
18
/// these for things like customizing strategies
19
19
pub ( super ) fn generate ( item_fn : ItemFn , options : Options ) -> TokenStream {
20
20
let ( mut argless_fn, args) = strip_args ( item_fn) ;
Original file line number Diff line number Diff line change
1
+
2
+ fn main ( ) { }
3
+
4
+ struct MyTestArgs {
5
+ something_else : String ,
6
+ }
7
+
8
+ #[ proptest:: property_test]
9
+ fn my_test ( x : i32 ) {
10
+ assert_eq ! ( x, x) ;
11
+ }
You can’t perform that action at this time.
0 commit comments