user_test.go 239 B

12345678910111213141516
  1. package discordgo
  2. import "testing"
  3. func TestUser(t *testing.T) {
  4. t.Parallel()
  5. user := &User{
  6. Username: "bob",
  7. Discriminator: "8192",
  8. }
  9. if user.String() != "bob#8192" {
  10. t.Errorf("user.String() == %v", user.String())
  11. }
  12. }