From 1a18374b244df383fd44f30e70f86ac96f9f1609 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 23 Feb 2020 11:02:58 -0400 Subject: [PATCH] add keycode test support --- hook_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hook_test.go b/hook_test.go index 30d87e7..d9540d5 100644 --- a/hook_test.go +++ b/hook_test.go @@ -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) +}