kos/entry/http/user_test.go

13 lines
189 B
Go
Raw Permalink Normal View History

2023-09-20 10:16:05 +08:00
package http
import "testing"
func TestUserinfo_Set(t *testing.T) {
ui := &Userinfo{}
ui.Set("name", "xxx")
ui.Set("lost", "xxx")
if ui.Get("lost") != "xxx" {
t.Error("error")
}
}