• Matt T. Proud's avatar
    testing/quick: improve function signature error. · e6ad56c7
    Matt T. Proud authored
    This commit fixes a cosmetic defect whereby quick.Check reports that
    the provided function returns too many values when it may, in fact,
    return too few:
    
      func f() {}
    
      func TestFoo(t *testing.T) {
        if err := quick.Check(f, nil); err != nil {
          t.Fatal(err)
        }
      }
      // yields
      // $ go test -v foo_test.go
      // === RUN TestFoo
      // --- FAIL: TestFoo (0.00s)
      // 	foo_test.go:76: function returns more than one value.
    
    Change-Id: Ia209ff5b57375b30f8db425454e80798908e8ff4
    Reviewed-on: https://go-review.googlesource.com/11281Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    e6ad56c7
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...