X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/5c34f8752938764668d829fb284626b9c62c5475..4a88189f30efac3cd86159b88c1a316a610e1523:/hotline/user_test.go diff --git a/hotline/user_test.go b/hotline/user_test.go index 2268a3e..214b1fb 100644 --- a/hotline/user_test.go +++ b/hotline/user_test.go @@ -77,8 +77,8 @@ func TestDecodeUserString(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if gotDecodedString := DecodeUserString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString { - t.Errorf("DecodeUserString() = %v, want %v", gotDecodedString, tt.wantDecodedString) + if gotDecodedString := decodeString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString { + t.Errorf("decodeString() = %v, want %v", gotDecodedString, tt.wantDecodedString) } }) } @@ -110,7 +110,7 @@ func TestNegatedUserString(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if got := negateString(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) } })