@@ -16,6 +16,13 @@ use proptest::collection::vec;
16
16
use proptest:: prelude:: * ;
17
17
18
18
proptest ! {
19
+ /// NOTE: proptest is a form of fuzz testing. It generates random input and makes shore that
20
+ /// certain universal truths are upheld. Therefore, it can pass when there is a problem,
21
+ /// but if it fails then there really is something wrong. When testing something as
22
+ /// complicated as the resolver, the problems can be very subtle and hard to generate.
23
+ /// We have had a history of these tests only failing on PRs long after a bug is introduced.
24
+ /// If you have one of these test fail please report it on #6258,
25
+ /// and if you did not change the resolver then feel free to retry without concern.
19
26
#![ proptest_config( ProptestConfig {
20
27
// Note that this is a little low in terms of cases we'd like to test,
21
28
// but this number affects how long this function takes. It can be
@@ -34,6 +41,7 @@ proptest! {
34
41
.. ProptestConfig :: default ( )
35
42
} ) ]
36
43
44
+ /// NOTE: if you think this test has failed spuriously see the note at the top of this macro.
37
45
#[ test]
38
46
fn passes_validation(
39
47
PrettyPrintRegistry ( input) in registry_strategy( 50 , 20 , 60 )
@@ -51,6 +59,7 @@ proptest! {
51
59
}
52
60
}
53
61
62
+ /// NOTE: if you think this test has failed spuriously see the note at the top of this macro.
54
63
#[ test]
55
64
fn minimum_version_errors_the_same(
56
65
PrettyPrintRegistry ( input) in registry_strategy( 50 , 20 , 60 )
@@ -100,6 +109,7 @@ proptest! {
100
109
}
101
110
}
102
111
112
+ /// NOTE: if you think this test has failed spuriously see the note at the top of this macro.
103
113
#[ test]
104
114
fn limited_independence_of_irrelevant_alternatives(
105
115
PrettyPrintRegistry ( input) in registry_strategy( 50 , 20 , 60 ) ,
0 commit comments