Skip to content

Commit 3ebcb40

Browse files
committed
Fix!: Remove deprecated ConfigAndGen::test_property
This function was deprecated, due to name change, aligning names of different asserts and tests. Use `ConfAndGen::test_true` instead.
1 parent 4e8b533 commit 3ebcb40

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/config.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,6 @@ where
139139
)
140140
}
141141

142-
/// This function is deprecated, due to name change, aligning names of
143-
/// different asserts and tests. Use [ConfAndGen::test_true] instead.
144-
#[deprecated = "Use ConfAndGen.test_true instead"]
145-
pub fn test_property(&self, prop: Property<E>) -> MonkeyResult<E> {
146-
self.test_true(prop)
147-
}
148-
149142
/// Check that the property holds for all generated example values.
150143
/// It panics on failure.
151144
#[track_caller]

src/gens/from_fn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ use crate::Seed;
2727
/// let my_shrinking_gen = my_gen.with_shrinker(shrinks::int_to_zero());
2828
/// monkey_test()
2929
/// .with_generator(my_shrinking_gen)
30-
/// .test_property(|n| n <= 10)
30+
/// .test_true(|n| n <= 10)
3131
/// .assert_minimum_failure(11);
3232
///
3333
/// // Second alternative for providing a shrinker - explicitly providing it at
3434
/// // point of property testing.
3535
/// monkey_test()
3636
/// .with_generator(my_gen)
3737
/// .with_shrinker(shrinks::int_to_zero())
38-
/// .test_property(|n| n <= 10)
38+
/// .test_true(|n| n <= 10)
3939
/// .assert_minimum_failure(11);
4040
/// ```
4141
///

0 commit comments

Comments
 (0)