Skip to content

Commit

Permalink
runa-orbiter/utils/geometry: fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Feb 29, 2024
1 parent e975649 commit 5c5cb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runa-orbiter/src/utils/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ mod tests {
let transform = Transform::_90;

assert_eq!(
Rectangle::from_loc_and_size(Point::new(0, 10), Extent::new(40, 30)),
Rectangle::from_loc_and_size(Point::new(20, 30), Extent::new(40, 30)),
transform.transform_rect_in(rect, &area)
)
}
Expand Down Expand Up @@ -1164,7 +1164,7 @@ mod tests {
let transform = Transform::Flipped90;

assert_eq!(
Rectangle::from_loc_and_size(Point::new(20, 30), Extent::new(40, 30)),
Rectangle::from_loc_and_size(Point::new(20, 10), Extent::new(40, 30)),
transform.transform_rect_in(rect, &area)
)
}
Expand All @@ -1190,7 +1190,7 @@ mod tests {
let transform = Transform::Flipped270;

assert_eq!(
Rectangle::from_loc_and_size(Point::new(20, 10), Extent::new(40, 30)),
Rectangle::from_loc_and_size(Point::new(30, 30), Extent::new(40, 30)),
transform.transform_rect_in(rect, &area)
)
}
Expand Down

0 comments on commit 5c5cb81

Please sign in to comment.