Skip to content

Commit 8e3f065

Browse files
committed
Export and add test
1 parent 5224b1d commit 8e3f065

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/kernels/constant.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Kernel function working as an equivalent to add white noise.
2424
struct WhiteKernel <: BaseKernel end
2525

2626
const EyeKernel = WhiteKernel
27+
export EyeKernel
2728

2829
kappa::WhiteKernel,δₓₓ::Real) = δₓₓ
2930

test/test_kernels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ x = rand()*2; v1 = rand(3); v2 = rand(3); id = IdentityTransform()
1616
@test eltype(k) == Any
1717
@test kappa(k,1.0) == 1.0
1818
@test kappa(k,0.0) == 0.0
19+
@test EyeKernel == WhiteKernel
1920
end
2021
@testset "ConstantKernel" begin
2122
c = 2.0

0 commit comments

Comments
 (0)