summaryrefslogtreecommitdiff
path: root/preproc/sauvola_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'preproc/sauvola_test.go')
-rw-r--r--preproc/sauvola_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/preproc/sauvola_test.go b/preproc/sauvola_test.go
index 1397a4f..5582941 100644
--- a/preproc/sauvola_test.go
+++ b/preproc/sauvola_test.go
@@ -35,7 +35,11 @@ func TestBinarization(t *testing.T) {
case "integralsauvola":
actual = IntegralSauvola(orig, c.ksize, c.wsize)
case "sauvola":
- actual = Sauvola(orig, c.ksize, c.wsize)
+ if *slow {
+ actual = Sauvola(orig, c.ksize, c.wsize)
+ } else {
+ t.Skip("Skipping slow test; use -slow to run it.\n")
+ }
default:
t.Fatalf("No method %s\n", c.name)
}