mirror of https://github.com/robotn/gohook.git
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