(t *testing.T)
| 601 | } |
| 602 | |
| 603 | func TestArgsDeleteAll(t *testing.T) { |
| 604 | t.Parallel() |
| 605 | var a Args |
| 606 | a.Add("q1", "foo") |
| 607 | a.Add("q1", "bar") |
| 608 | a.Add("q1", "baz") |
| 609 | a.Add("q1", "quux") |
| 610 | a.Add("q2", "1234") |
| 611 | a.Del("q1") |
| 612 | if a.Len() != 1 || a.Has("q1") { |
| 613 | t.Fatalf("Expected q1 arg to be completely deleted. Current Args: %q", a.String()) |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | func TestIssue932(t *testing.T) { |
| 618 | t.Parallel() |