Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testing failure on julia 1.0 #222

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export
extrapolate,
scale,

gradient,
gradient!,
gradient1,
hessian!,
Expand Down Expand Up @@ -46,8 +47,6 @@ import Base: convert, size, getindex, promote_rule,

@static if VERSION < v"0.7.0-DEV.3449"
import Base: gradient
else
import LinearAlgebra: gradient
end

import Compat: axes
Expand Down
4 changes: 3 additions & 1 deletion test/scaling/nointerp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ end
@test length(gradient(sitp, pi/3, 2)) == 1

# check for case where initial/middle indices are NoInterp but later ones are <:BSpline
srand(1234)

isdefined(Random, :seed!) ? Random.seed!(1234) : srand(1234) # `srand` was renamed to `seed!`

z0 = rand(10,10)
za = copy(z0)
zb = copy(z0')
Expand Down