From bd34490e34a95346e867f23b863b3bb284b733e5 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 12 Feb 2020 10:01:43 -0400 Subject: [PATCH] add more key test code --- robotgo_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/robotgo_test.go b/robotgo_test.go index 8512285..356bd51 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -76,6 +76,19 @@ func TestMoveSmoothRelative(t *testing.T) { tt.Equal(t, 190, y) } +func TestKey(t *testing.T) { + e := KeyTap("v", "cmd") + tt.Empty(t, e) + + e = KeyToggle("v", "up") + tt.Empty(t, e) +} + +func TestTypeStr(t *testing.T) { + c := CharCodeAt("s", 0) + tt.Equal(t, 115, c) +} + func TestBitmap(t *testing.T) { bit := CaptureScreen() tt.NotNil(t, bit)