Skip to content

Commit

Permalink
bug: wrong percent calculation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Feb 23, 2019
1 parent e4fc29b commit 2d369de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions avg/distance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2d369de

Please sign in to comment.