From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/unarray/src/testing.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/unarray/src/testing.rs (limited to 'vendor/unarray/src/testing.rs') diff --git a/vendor/unarray/src/testing.rs b/vendor/unarray/src/testing.rs new file mode 100644 index 000000000..f33ada9a8 --- /dev/null +++ b/vendor/unarray/src/testing.rs @@ -0,0 +1,12 @@ +use core::convert::TryInto; + +use proptest::collection::*; +use proptest::prelude::*; + +pub fn array_strategy() -> impl Strategy { + vec(any::(), N).prop_map(|v| v.try_into().unwrap()) +} + +pub fn vec_strategy(n: usize) -> impl Strategy> { + vec(any::(), n) +} -- cgit v1.2.3