mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 02:25:04 -06:00
test(input): update pause key binding test to use Escape
This commit is contained in:
@@ -22,7 +22,7 @@ mod keyboard_tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn key_down_emits_non_movement_commands() {
|
fn key_down_emits_non_movement_commands() {
|
||||||
let mut bindings = Bindings::default();
|
let mut bindings = Bindings::default();
|
||||||
let events = process_simple_key_events(&mut bindings, &[SimpleKeyEvent::KeyDown(Keycode::P)]);
|
let events = process_simple_key_events(&mut bindings, &[SimpleKeyEvent::KeyDown(Keycode::Escape)]);
|
||||||
assert_that(&events).contains(GameEvent::Command(GameCommand::TogglePause));
|
assert_that(&events).contains(GameEvent::Command(GameCommand::TogglePause));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user