Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Aug 6, 2024
1 parent a5f9078 commit 26a8bbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/clashing_inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ mod tests {
input_map::UpdatedValue,
prelude::{AccumulatedMouseMovement, AccumulatedMouseScroll, ModifierKey},
};
use bevy::input::InputPlugin;
use bevy::{input::InputPlugin, math::Vec2};
use Action::*;

use super::*;
Expand Down Expand Up @@ -720,7 +720,11 @@ mod tests {
if *action == CtrlOne || *action == OneAndTwo {
assert_eq!(updated_value, UpdatedValue::Button(true));
} else {
assert_eq!(updated_value, UpdatedValue::Button(false));
match updated_value {
UpdatedValue::Button(pressed) => assert_eq!(pressed, false),
UpdatedValue::Axis(value) => assert_eq!(value, 0.0),
UpdatedValue::DualAxis(pair) => assert_eq!(pair, Vec2::ZERO),
}
}
}
}
Expand Down

0 comments on commit 26a8bbd

Please sign in to comment.