This commit is contained in:
Austen Adler 2022-07-15 18:58:33 -04:00
parent d69cec4d73
commit b2d6e18c82

View File

@ -58,11 +58,13 @@ impl SelectionDesc {
left: self.left,
right: self.left,
});
// My right is contained in b
let right_contained = b.contains(&SelectionDesc {
left: self.right,
right: self.right,
});
// b is contaned in self
let b_contained = self.contains(b);
@ -545,10 +547,7 @@ mod test {
// Check parsing
assert_eq!(sd!(18, 9, 10, 1), SD);
// Check if multiple parsed ones match
assert_eq!(
sd!(18,9,10,1),
sd!(18,9,10,1)
);
assert_eq!(sd!(18, 9, 10, 1), sd!(18, 9, 10, 1));
}
#[test]