More testing.

This commit is contained in:
2015-11-17 07:04:31 +01:00
parent 8b4ca56a2f
commit 2ef29c4021

View File

@@ -138,5 +138,8 @@ mod tests {
assert_eq!(layer.find_intersecting(&Rect::new_unwrap(7, 2, 1, 2)), Some(Rect::new_unwrap(2, 0, 1, 2)));
assert_eq!(layer.find_intersecting(&Rect::new_unwrap(7, 5, 1, 2)), Some(Rect::new_unwrap(2, 1, 1, 2)));
// exactly one tile.
assert_eq!(layer.find_intersecting(&Rect::new_unwrap(0, 0, 3, 3)), Some(Rect::new_unwrap(0, 0, 1, 1)));
}
}