HolyLab / BlockRegistration.jl

Deformable image registration via shift-alignment of blocks
6 stars 1 forks source link

CachedInterpolations test error #91

Open kdw503 opened 5 years ago

kdw503 commented 5 years ago

There seems to be test errors in 'CachedInterpolations' module. Testing lines below(for julia 0.6 REPL) are came from first several lines in 'test/cached_interpolations.jl' file.

include("src/CachedInterplations.jl")
using Main.CachedInterpolations, Base.Test
A = reshape([0;1;0], (3,1))
C = CachedInterpolations.cachedinterpolators(A, 1)
@test C[1][2.2] ≈ 3/4-0.2^2

This gives an error as below

Test Failed
  Expression: (C[1])[2.2] ≈ / 4 - 0.2 ^ 2
   Evaluated: 0.04499999999999995 ≈ 0.71
ERROR: There was an error during testing