Skip to content

Commit

Permalink
Don't overwrite eps with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Nov 7, 2014
1 parent e880cbf commit 26322c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/colordiff.jl
Expand Up @@ -45,12 +45,11 @@ const abds = [
((2.0776, 0.0795, -1.1350), ( 0.9033, -0.0636, -0.5514), 0.9082)]


const eps = 0.01
const eps_cdiff = 0.01

metric = DE_2000()

for (i, (a, b, dexpect)) in enumerate(abds)
@assert abs(dexpect - colordiff(Lab(a...), Lab(b...), metric)) < eps
@assert abs(dexpect - colordiff(Lab(b...), Lab(a...), metric)) < eps
@assert abs(dexpect - colordiff(Lab(a...), Lab(b...), metric)) < eps_cdiff
@assert abs(dexpect - colordiff(Lab(b...), Lab(a...), metric)) < eps_cdiff
end

0 comments on commit 26322c5

Please sign in to comment.