Skip to content

Commit 27bffad

Browse files
committed
fix
1 parent e04dad1 commit 27bffad

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
3+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
34
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
45
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
56
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"

test/basekernels/constant.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636

3737
# Standardised tests.
3838
TestUtils.test_interface(k, Float64)
39-
test_ADs(c -> ConstantKernel(; c=first(c)), [c])
39+
test_ADs(c -> ConstantKernel(; c=only(c)), [c])
4040
end
4141
end

test/basekernels/exponential.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
@test metric(k2) isa WeightedEuclidean
5757
@test k2(v1, v2) k(v1, v2)
5858

59-
test_ADs-> GammaExponentialKernel(; gamma=first(γ)), [1 + 0.5 * rand()])
59+
test_ADs-> GammaExponentialKernel(; gamma=only(γ)), [1 + 0.5 * rand()])
6060
test_params(k, ([γ],))
6161
TestUtils.test_interface(GammaExponentialKernel(; γ=1.36))
6262

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ using Zygote: Zygote
1414
using ForwardDiff: ForwardDiff
1515
using ReverseDiff: ReverseDiff
1616
using FiniteDifferences: FiniteDifferences
17+
using Compat: only
1718

1819
using KernelFunctions: SimpleKernel, metric, kappa, ColVecs, RowVecs, TestUtils
1920

0 commit comments

Comments
 (0)