]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/user_test.go
Fix tracker results
[rbdr/mobius] / hotline / user_test.go
index c55e35dfffb075295d74be2f65af2b40b096b419..24290096db87ae6f26f26b69aefc8f7ab7380584 100644 (file)
@@ -28,7 +28,7 @@ func TestReadUser(t *testing.T) {
                                },
                        },
                        want: &User{
-                               ID: []byte{
+                               ID: [2]byte{
                                        0x00, 0x01,
                                },
                                Icon: []byte{
@@ -83,7 +83,7 @@ func TestNegatedUserString(t *testing.T) {
        }
        for _, tt := range tests {
                t.Run(tt.name, func(t *testing.T) {
-                       if got := encodeString(tt.args.encodedString); !bytes.Equal(got, tt.want) {
+                       if got := EncodeString(tt.args.encodedString); !bytes.Equal(got, tt.want) {
                                t.Errorf("NegatedUserString() = %x, want %x", got, tt.want)
                        }
                })