mirror of
https://github.com/robotn/gohook.git
synced 2025-01-18 13:46:41 +08:00
add keycode test support
This commit is contained in:
parent
abe328aaa1
commit
1a18374b24
@ -13,3 +13,11 @@ func TestAdd(t *testing.T) {
|
||||
e := Start()
|
||||
tt.NotNil(t, e)
|
||||
}
|
||||
|
||||
func TestKey(t *testing.T) {
|
||||
k := RawcodetoKeychar(0)
|
||||
tt.Equal(t, "error", k)
|
||||
|
||||
r := KeychartoRawcode("error")
|
||||
tt.Equal(t, 0, r)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user