From 460b971f5479f8de35b748fd9a7213f53dbc4178 Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Thu, 14 Feb 2019 23:27:32 +0900 Subject: [PATCH] Fix TestPaginationSetValues --- mastodon_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mastodon_test.go b/mastodon_test.go index 62ec165..5fdefe4 100644 --- a/mastodon_test.go +++ b/mastodon_test.go @@ -341,10 +341,10 @@ func TestPaginationSetValues(t *testing.T) { t.Fatalf("want %q but %q", "123", after.Get("max_id")) } if after.Get("since_id") != "456" { - t.Fatalf("result should be empty string: %q", after.Get("since_id")) + t.Fatalf("want %q but %q", "456", after.Get("since_id")) } if after.Get("min_id") != "789" { - t.Fatalf("result should be empty string: %q", after.Get("since_id")) + t.Fatalf("want %q but %q", "789", after.Get("min_id")) } if after.Get("limit") != "10" { t.Fatalf("want %q but %q", "10", after.Get("limit")) @@ -362,4 +362,7 @@ func TestPaginationSetValues(t *testing.T) { if after.Get("since_id") != "789" { t.Fatalf("want %q but %q", "789", after.Get("since_id")) } + if after.Get("min_id") != "" { + t.Fatalf("result should be empty string: %q", after.Get("min_id")) + } }