]> Cypherpunks repositories - gostls13.git/commit
image/png: fix compare-to-golden-file test.
authorNigel Tao <nigeltao@golang.org>
Fri, 13 Jun 2014 07:43:02 +0000 (17:43 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 13 Jun 2014 07:43:02 +0000 (17:43 +1000)
commiteb788045d85f48980b8513a71661fcf3100c98c8
tree509bd7bb8a764deb137c5d4b8a8c8e4858f1fafa
parent7d3be61386bd7aab350b443808e2b0e5171033a9
image/png: fix compare-to-golden-file test.

bufio.Scanner.Scan returns whether the scan succeeded, not whether it
is done, so the test was mistakenly breaking early.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/93670045
src/pkg/image/png/reader_test.go