diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-09 10:29:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 09:29:28 +0100 |
commit | c0c5f9cd387c3b450ba24cbe364b44a65d9eb269 (patch) | |
tree | 3d321c0edf20a6789ef34cb494f59936ecc53caa /header_test.go | |
parent | optimized b2s function (#1483) (diff) | |
download | fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.gz fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.bz2 fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.zip |
doc,test: correct typos (#1484)
Diffstat (limited to 'header_test.go')
-rw-r--r-- | header_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/header_test.go b/header_test.go index 7d29425..94120bb 100644 --- a/header_test.go +++ b/header_test.go @@ -1883,7 +1883,7 @@ func TestRequestHeaderCookie(t *testing.T) { h.SetCookie("привет", "мир") if string(h.Cookie("foo")) != "bar" { - t.Fatalf("Unexpected cookie value %q. Exepcted %q", h.Cookie("foo"), "bar") + t.Fatalf("Unexpected cookie value %q. Expected %q", h.Cookie("foo"), "bar") } if string(h.Cookie("привет")) != "мир" { t.Fatalf("Unexpected cookie value %q. Expected %q", h.Cookie("привет"), "мир") @@ -1905,7 +1905,7 @@ func TestRequestHeaderCookie(t *testing.T) { } if !bytes.Equal(h1.Cookie("foo"), h.Cookie("foo")) { - t.Fatalf("Unexpected cookie value %q. Exepcted %q", h1.Cookie("foo"), h.Cookie("foo")) + t.Fatalf("Unexpected cookie value %q. Expected %q", h1.Cookie("foo"), h.Cookie("foo")) } h1.DelCookie("foo") if len(h1.Cookie("foo")) > 0 { @@ -1956,7 +1956,7 @@ func TestResponseHeaderCookieIssue4(t *testing.T) { c.SetKey("foo") h.Cookie(c) if string(c.Value()) != "bar" { - t.Fatalf("Unexpected cookie value %q. Exepcted %q", c.Value(), "bar") + t.Fatalf("Unexpected cookie value %q. Expected %q", c.Value(), "bar") } if string(h.Peek(HeaderSetCookie)) != "foo=bar" { @@ -1998,7 +1998,7 @@ func TestRequestHeaderCookieIssue313(t *testing.T) { } if string(h.Cookie("foo")) != "bar" { - t.Fatalf("Unexpected cookie value %q. Exepcted %q", h.Cookie("foo"), "bar") + t.Fatalf("Unexpected cookie value %q. Expected %q", h.Cookie("foo"), "bar") } if string(h.Peek(HeaderCookie)) != "foo=bar" { |