add test
This commit is contained in:
parent
c4d86c372a
commit
dde124e76a
1 changed files with 13 additions and 1 deletions
|
@ -59,4 +59,16 @@ impl KeyState {
|
|||
OsString::from_wide(&out[..null_pos]).to_str().unwrap().to_owned()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::key::keystate::KeyState;
|
||||
|
||||
#[test]
|
||||
fn is_aux_key() {
|
||||
let mut k = KeyState::new();
|
||||
k.kbdllstruct.vkCode = 160;
|
||||
assert!(k.is_aux_key());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue