gohook/hook_test.go

24 lines
297 B
Go
Raw Normal View History

2020-02-23 00:09:45 +08:00
package hook
import (
"fmt"
"testing"
"github.com/vcaesar/tt"
)
func TestAdd(t *testing.T) {
fmt.Println("hook test...")
e := Start()
tt.NotNil(t, e)
}
2020-02-23 23:02:58 +08:00
func TestKey(t *testing.T) {
k := RawcodetoKeychar(0)
tt.Equal(t, "error", k)
r := KeychartoRawcode("error")
tt.Equal(t, 0, r)
}