mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-02-14 14:39:51 +00:00
dev-ops/fix-unit-tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user