From 2d369de6c67c666f3918a24924e3c55a5be171fa Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 23 Feb 2019 12:44:53 +0700 Subject: [PATCH] bug: wrong percent calculation logic --- avg/distance_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/avg/distance_test.go b/avg/distance_test.go index 4dc1621..d0cdfe0 100644 --- a/avg/distance_test.go +++ b/avg/distance_test.go @@ -24,6 +24,7 @@ func Test_distance(t *testing.T) { file2: "https://raw.githubusercontent.com/AskAlexSharov/imgdiff/master/avg/test-png-damaged.png", wantDistance: 2, }, + { name: "Scaled Down vs Damaged - 2%", file1: "https://raw.githubusercontent.com/AskAlexSharov/imgdiff/master/avg/test-png-scaled-down.png",