13 lines
189 B
Go
13 lines
189 B
Go
|
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")
|
||
|
}
|
||
|
}
|