Index: rangemap/Cargo.toml =================================================================== --- rangemap.orig/Cargo.toml +++ rangemap/Cargo.toml @@ -53,11 +53,6 @@ path = "src/lib.rs" name = "roster" path = "examples/roster.rs" -[[bench]] -name = "benches" -path = "benches/benches.rs" -harness = false - [dependencies.quickcheck] version = "1.0.3" optional = true @@ -75,9 +70,6 @@ version = "0.7" [dev-dependencies.permutator] version = "0.4" -[dev-dependencies.proptest] -version = "1.4" - [dev-dependencies.rand] version = "0.9" Index: rangemap/src/inclusive_map.rs =================================================================== --- rangemap.orig/src/inclusive_map.rs +++ rangemap/src/inclusive_map.rs @@ -971,10 +971,10 @@ mod tests { use super::*; use alloc as std; use alloc::{format, string::String, vec, vec::Vec}; - use proptest::prelude::*; - use test_strategy::proptest; + //use proptest::prelude::*; + //use test_strategy::proptest; - impl Arbitrary for RangeInclusiveMap + /*impl Arbitrary for RangeInclusiveMap where K: Ord + Clone + Debug + StepLite + Arbitrary + 'static, V: Clone + PartialEq + Arbitrary + 'static, @@ -1107,7 +1107,7 @@ mod tests { left.partial_cmp(&right).unwrap(), "ordering is total for ordered parameters" ); - } + }*/ #[test] fn test_from_array() { Index: rangemap/src/inclusive_set.rs =================================================================== --- rangemap.orig/src/inclusive_set.rs +++ rangemap/src/inclusive_set.rs @@ -494,10 +494,10 @@ mod tests { use super::*; use alloc as std; use alloc::{format, vec, vec::Vec}; - use proptest::prelude::*; - use test_strategy::proptest; + //use proptest::prelude::*; + //use test_strategy::proptest; - impl Arbitrary for RangeInclusiveSet + /*impl Arbitrary for RangeInclusiveSet where T: Ord + Clone + StepLite + Debug + Arbitrary + 'static, { @@ -621,7 +621,7 @@ mod tests { left.partial_cmp(&right).unwrap(), "ordering is total for ordered parameters" ); - } + }*/ #[test] fn test_from_array() { @@ -640,7 +640,7 @@ mod tests { ); } - #[proptest] + /*#[proptest] fn test_union_overlaps_u8(left: RangeInclusiveSet, right: RangeInclusiveSet) { let mut union = RangeInclusiveSet::new(); for range in left.union(&right) { @@ -685,7 +685,7 @@ mod tests { assert!(union.overlapping(&range).next().is_none()); union.insert(range); } - } + }*/ trait RangeInclusiveSetExt { fn to_vec(&self) -> Vec>; Index: rangemap/src/map.rs =================================================================== --- rangemap.orig/src/map.rs +++ rangemap/src/map.rs @@ -853,10 +853,10 @@ mod tests { use super::*; use alloc as std; use alloc::{format, string::String, vec, vec::Vec}; - use proptest::prelude::*; - use test_strategy::proptest; + //use proptest::prelude::*; + //use test_strategy::proptest; - impl Arbitrary for RangeMap + /*impl Arbitrary for RangeMap where K: Ord + Clone + Debug + Arbitrary + 'static, V: Clone + PartialEq + Arbitrary + 'static, @@ -986,7 +986,7 @@ mod tests { left.partial_cmp(&right).unwrap(), "ordering is total for ordered parameters" ); - } + }*/ #[test] fn test_from_array() { Index: rangemap/src/set.rs =================================================================== --- rangemap.orig/src/set.rs +++ rangemap/src/set.rs @@ -460,10 +460,10 @@ mod tests { use super::*; use alloc as std; use alloc::{format, vec, vec::Vec}; - use proptest::prelude::*; - use test_strategy::proptest; + //use proptest::prelude::*; + //use test_strategy::proptest; - impl Arbitrary for RangeSet + /*impl Arbitrary for RangeSet where T: Ord + Clone + Debug + Arbitrary + 'static, { @@ -480,9 +480,9 @@ mod tests { }) .boxed() } - } + }*/ - #[proptest] + /*#[proptest] fn test_first(set: RangeSet) { assert_eq!(set.first(), set.iter().min_by_key(|range| range.start)); } @@ -525,7 +525,7 @@ mod tests { let mut backward: Vec<_> = set.overlapping(&range).rev().collect(); backward.reverse(); assert_eq!(forward, backward); - } + }*/ // neccessary due to assertion on empty ranges fn filter_ranges(ranges: Vec>) -> Vec> { @@ -535,7 +535,7 @@ mod tests { .collect() } - #[proptest] + /*#[proptest] fn test_arbitrary_set_u8(ranges: Vec>) { let ranges = filter_ranges(ranges); let set = ranges.iter().fold(RangeSet::new(), |mut set, range| { @@ -590,7 +590,7 @@ mod tests { left.partial_cmp(&right).unwrap(), "ordering is total for ordered parameters" ); - } + }*/ #[test] fn test_from_array() { @@ -609,7 +609,7 @@ mod tests { ); } - #[proptest] + /*#[proptest] fn test_union_overlaps_u8(left: RangeSet, right: RangeSet) { let mut union = RangeSet::new(); for range in left.union(&right) { @@ -654,7 +654,7 @@ mod tests { assert!(union.overlapping(&range).next().is_none()); union.insert(range); } - } + }*/ trait RangeSetExt { fn to_vec(&self) -> Vec>;