Fix TestPaginationSetValues

pull/91/head
178inaba 2019-02-14 23:27:32 +09:00 committed by mattn
parent 1fcdf9f501
commit 460b971f54
1 changed files with 5 additions and 2 deletions

View File

@ -341,10 +341,10 @@ func TestPaginationSetValues(t *testing.T) {
t.Fatalf("want %q but %q", "123", after.Get("max_id")) t.Fatalf("want %q but %q", "123", after.Get("max_id"))
} }
if after.Get("since_id") != "456" { 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" { 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" { if after.Get("limit") != "10" {
t.Fatalf("want %q but %q", "10", after.Get("limit")) 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" { if after.Get("since_id") != "789" {
t.Fatalf("want %q but %q", "789", after.Get("since_id")) 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"))
}
} }