From f153754dc4b9ddece836fa046b119ac09180e0fe Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 14 Mar 2024 22:28:35 +0100 Subject: [PATCH] Correct typo in test error message The error message within the test case had a typographical error. The word "length" was incorrectly spelled as "lenght". This has been fixed to enhance the readability of the code. --- random_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/random_test.go b/random_test.go index 9aa61c2..b4e6feb 100644 --- a/random_test.go +++ b/random_test.go @@ -98,7 +98,7 @@ func TestGenerator_RandomBytes(t *testing.T) { } bl := len(rb) if int64(bl) != tc.l { - t.Errorf("lenght of provided bytes does not match requested length: got: %d, expected: %d", + t.Errorf("length of provided bytes does not match requested length: got: %d, expected: %d", bl, tc.l) } if bytes.Equal(rb, make([]byte, tc.l)) {