add keycode test support

This commit is contained in:
vcaesar 2020-02-25 11:48:28 -04:00
parent 4d5dc9d6e3
commit 5f5f208a43

View File

@ -122,6 +122,14 @@ func TestTypeStr(t *testing.T) {
tt.Empty(t, e)
}
func TestKeyCode(t *testing.T) {
m := MouseMap["left"]
tt.Equal(t, 1, m)
k := Keycode["1"]
tt.Equal(t, 2, k)
}
func TestBitmap(t *testing.T) {
bit := CaptureScreen()
tt.NotNil(t, bit)