add test
This commit is contained in:
parent
c4d86c372a
commit
dde124e76a
1 changed files with 13 additions and 1 deletions
|
@ -60,3 +60,15 @@ impl KeyState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[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