summaryrefslogtreecommitdiff
path: root/preproc/sauvola_test.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-05-13 21:25:08 +0100
committerNick White <git@njw.name>2019-05-13 21:25:08 +0100
commitf6917c22914b40f19b6ae0d59e909371d280dbc4 (patch)
treeb260bfe076f62f986375d0d85caa321d305d99cf /preproc/sauvola_test.go
parent94dd98e8845ab9b9196c745e2b48b24c2fed162b (diff)
Define flags in each test, so they arent erroneously picked up and used by cmds as they were defined in global package space
Diffstat (limited to 'preproc/sauvola_test.go')
-rw-r--r--preproc/sauvola_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/preproc/sauvola_test.go b/preproc/sauvola_test.go
index 5582941..deefb96 100644
--- a/preproc/sauvola_test.go
+++ b/preproc/sauvola_test.go
@@ -1,6 +1,7 @@
package preproc
import (
+ "flag"
"fmt"
"image"
"image/png"
@@ -9,6 +10,9 @@ import (
)
func TestBinarization(t *testing.T) {
+ var slow = flag.Bool("slow", false, "include slow tests")
+ var update = flag.Bool("updatesauvola", false, "update golden files")
+
cases := []struct {
name string
orig string