diff --git a/src/intersections.rs b/src/intersections.rs index 12628ff..1de91e4 100644 --- a/src/intersections.rs +++ b/src/intersections.rs @@ -211,6 +211,9 @@ impl Intersections { } } } + if a_mode.contains(IntersectionMode::Not) && self.overlapping.len() == 0 { + self.push_overlap_fragments(&mut result, &vec![], a_part, b_part, usize::MAX); + } Report::new(result) } @@ -800,6 +803,16 @@ mod tests { )); } + #[test] + fn test_satisifies_reqs_bases_with_not() { + assert!(Intersections::satisfies_requirements( + 1, + 100, + &OverlapAmount::Bases(10), + &IntersectionMode::Not + )); + } + #[test] fn test_sufficient_bases_with_fraction() { assert!(!Intersections::satisfies_requirements(