X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/9cf66aeafbcbb9237fedc2efc97cc2856eb60f7f..8fa166777cbcd92e871e937d9557f0f1a732c04d:/hotline/user_test.go?ds=inline diff --git a/hotline/user_test.go b/hotline/user_test.go index 6258316..90c59f7 100644 --- a/hotline/user_test.go +++ b/hotline/user_test.go @@ -28,7 +28,7 @@ func TestReadUser(t *testing.T) { }, }, want: &User{ - ID: []byte{ + ID: [2]byte{ 0x00, 0x01, }, Icon: []byte{ @@ -57,34 +57,6 @@ func TestReadUser(t *testing.T) { } } -func TestDecodeUserString(t *testing.T) { - type args struct { - encodedString []byte - } - tests := []struct { - name string - args args - wantDecodedString string - }{ - { - name: "decodes bytes to guest", - args: args{ - encodedString: []byte{ - 0x98, 0x8a, 0x9a, 0x8c, 0x8b, - }, - }, - wantDecodedString: "guest", - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if gotDecodedString := decodeString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString { - t.Errorf("decodeString() = %v, want %v", gotDecodedString, tt.wantDecodedString) - } - }) - } -} - func TestNegatedUserString(t *testing.T) { type args struct { encodedString []byte