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) +}