kogs/user_test.go

17 lines
211 B
Go
Raw Normal View History

package main
import "testing"
func TestUserKey(t *testing.T) {
u := &User{
Username: "arst",
}
key := u.Key()
exp := "user:arst:key"
if key != exp {
t.Errorf("expected %q, got %q\n", exp, key)
}
}