diff --git a/tx0/user/user_profile.go b/tx0/user/user_profile.go index a3e59d9..02b0c98 100644 --- a/tx0/user/user_profile.go +++ b/tx0/user/user_profile.go @@ -1,5 +1,9 @@ package user +import ( + "testing" +) + type UserProfile struct { Usr *User `json:"user"` @@ -22,3 +26,12 @@ func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) { } } } + +func TestInitUserProfile(t *testing.T) { + usr := User{} + usr.username = "Bob" + usr.Phone = "+12224572351" + usr.Password = "TheNight!" + profile, done := InitUserProfile(&usr) + t.Assert(done, true, "Error") +}