Skip to content

Commit

Permalink
(Forgot to format new tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
samclane committed Sep 30, 2024
1 parent ef42880 commit 129d941
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,7 @@ mod tests {
InputItem::from_str("Shift").unwrap(),
InputItem::Key(Key::ShiftLeft)
);
assert_eq!(
InputItem::from_str("a").unwrap(),
InputItem::Key(Key::KeyA)
);
assert_eq!(InputItem::from_str("a").unwrap(), InputItem::Key(Key::KeyA));
assert_eq!(
InputItem::from_str("Left").unwrap(),
InputItem::Button(Button::Left)
Expand All @@ -506,10 +503,7 @@ mod tests {

#[test]
fn test_map_egui_key_to_rdev_key() {
assert_eq!(
map_egui_key_to_rdev_key(egui::Key::A).unwrap(),
Key::KeyA
);
assert_eq!(map_egui_key_to_rdev_key(egui::Key::A).unwrap(), Key::KeyA);
assert_eq!(
map_egui_key_to_rdev_key(egui::Key::Enter).unwrap(),
Key::Return
Expand Down Expand Up @@ -812,4 +806,4 @@ mod tests {
let action = InputAction::from_str("b+a+ctrl").unwrap();
assert_eq!(format!("{}", action), "ControlLeft+KeyA+KeyB");
}
}
}

0 comments on commit 129d941

Please sign in to comment.