From 2946ba02f25a7ae605464031099580b3ae2ce22c Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 14 May 2019 10:30:35 +0100 Subject: gofmt --- preproc/sauvola_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'preproc/sauvola_test.go') diff --git a/preproc/sauvola_test.go b/preproc/sauvola_test.go index deefb96..2331e10 100644 --- a/preproc/sauvola_test.go +++ b/preproc/sauvola_test.go @@ -14,11 +14,11 @@ func TestBinarization(t *testing.T) { var update = flag.Bool("updatesauvola", false, "update golden files") cases := []struct { - name string - orig string + name string + orig string golden string - ksize float64 - wsize int + ksize float64 + wsize int }{ {"integralsauvola", "testdata/pg1.png", "testdata/pg1_integralsauvola_k0.5_w41.png", 0.5, 41}, {"integralsauvola", "testdata/pg1.png", "testdata/pg1_integralsauvola_k0.5_w19.png", 0.5, 19}, @@ -62,7 +62,7 @@ func TestBinarization(t *testing.T) { if err != nil { t.Fatalf("Could not open file %s: %v\n", c.golden, err) } - if ! imgsequal(golden, actual) { + if !imgsequal(golden, actual) { t.Errorf("Binarized %s differs to %s\n", c.orig, c.golden) } }) -- cgit v1.2.1-24-ge1ad