From 334fe2f1f987c0a385c4f0f50161ce31ad5a4fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20J=C3=BCrgensmeyer?= Date: Wed, 12 Jun 2024 18:21:31 +0200 Subject: [PATCH] Adjust test --- decode/decode_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode/decode_test.go b/decode/decode_test.go index 7cc1fc3..64eb259 100644 --- a/decode/decode_test.go +++ b/decode/decode_test.go @@ -82,7 +82,7 @@ func TestDecode(t *testing.T) { decodings: 2, expect: expect{ encryption: Proto, - output: []byte(`1:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\bexa mple" 7:"" `), + output: []byte(`type_url:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\x08exa mple" 7:""`), }, }, } @@ -103,7 +103,7 @@ func TestDecode(t *testing.T) { t.Fatalf("expected decoding %v, got %v", tt.expect.encryption, enc) } if !bytes.Equal(decoded, tt.expect.output) { - t.Fatalf("expected '%v', got '%v'", tt.expect.output, decoded) + t.Fatalf("expected '%v', got '%v'", string(tt.expect.output), string(decoded)) } }) }