diff --git a/local/recipes/tui/tlc/source/src/keymap/mod.rs b/local/recipes/tui/tlc/source/src/keymap/mod.rs index b0bcb247b8..b59aa50006 100644 --- a/local/recipes/tui/tlc/source/src/keymap/mod.rs +++ b/local/recipes/tui/tlc/source/src/keymap/mod.rs @@ -664,4 +664,20 @@ mod tests { assert!(!cmd.name().is_empty(), "{cmd:?} ({key:?}) has empty name"); } } + + #[test] + fn f3_is_view_and_shift_f3_is_view_raw() { + let km = default_keymap(); + assert_eq!(km.lookup(F3), Some(Cmd::View)); + let shift_f3 = Key { + code: F3.code, + mods: crate::key::Modifiers::SHIFT, + }; + assert_eq!(km.lookup(shift_f3), Some(Cmd::ViewRaw)); + } + + #[test] + fn appearance_has_nonempty_name() { + assert!(!Cmd::Appearance.name().is_empty()); + } }