dev-ops/fix-unit-tests

This commit is contained in:
Thilo Behnke
2022-07-03 17:27:53 +02:00
parent f559df7f6a
commit f6fe13e476

View File

@@ -105,7 +105,7 @@ pub mod pong_collisions {
create_player(1, 10, 0, Vector::new(0., -1.)),
get_bound(Bound::BOTTOM),
// expected
create_player(1, 10, 61, Vector::new(0., -1.)),
create_player(1, 10, 31, Vector::new(0., -1.)),
get_bound(Bound::BOTTOM)
)]
#[case(
@@ -113,7 +113,7 @@ pub mod pong_collisions {
create_player(1, 10, 1, Vector::new(0., -1.)),
get_bound(Bound::BOTTOM),
// expected
create_player(1, 10, 61, Vector::new(0., -1.)),
create_player(1, 10, 31, Vector::new(0., -1.)),
get_bound(Bound::BOTTOM)
)]
#[case(
@@ -121,7 +121,7 @@ pub mod pong_collisions {
create_player(1, 10, 601, Vector::new(0., 1.)),
get_bound(Bound::TOP),
// expected
create_player(1, 10, 539, Vector::new(0., 1.)),
create_player(1, 10, 569, Vector::new(0., 1.)),
get_bound(Bound::TOP)
)]
#[case(
@@ -129,7 +129,7 @@ pub mod pong_collisions {
create_player(1, 10, 599, Vector::new(0., 1.)),
get_bound(Bound::TOP),
// expected
create_player(1, 10, 539, Vector::new(0., 1.)),
create_player(1, 10, 569, Vector::new(0., 1.)),
get_bound(Bound::TOP)
)]
pub fn should_correctly_handle_player_bounds_collision(