~kris/9p

disco

ref: f35618b1a898c7cf6c64df4ab9ccb8298d31fc43 disco/DiscordGo/user_test.go -rw-r--r-- 239 bytes
f35618b1 — Sean Hinchee updating discordgo vending 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package discordgo

import "testing"

func TestUser(t *testing.T) {
	t.Parallel()

	user := &User{
		Username:      "bob",
		Discriminator: "8192",
	}

	if user.String() != "bob#8192" {
		t.Errorf("user.String() == %v", user.String())
	}
}