From 5f5f208a436454c4145d573aef5daf5d289dae04 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 25 Feb 2020 11:48:28 -0400 Subject: [PATCH] add keycode test support --- robotgo_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/robotgo_test.go b/robotgo_test.go index 3dfd33d..23c4cec 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -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)