diff options
author | Nick White <git@njw.name> | 2019-05-14 10:30:35 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-05-14 10:30:35 +0100 |
commit | 2946ba02f25a7ae605464031099580b3ae2ce22c (patch) | |
tree | 292ff2ed50ae5731d20ec8e8a5f5b57c950ea8de /preproc/sauvola_test.go | |
parent | 3b12c59f37f0dc58ad1886052c03f4c81a2a5b78 (diff) |
gofmt
Diffstat (limited to 'preproc/sauvola_test.go')
-rw-r--r-- | preproc/sauvola_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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) } }) |