add keycode test support

This commit is contained in:
vcaesar 2020-02-23 11:02:58 -04:00
parent abe328aaa1
commit 1a18374b24
1 changed files with 8 additions and 0 deletions

View File

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