Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
molet committed Jul 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent aae8bc2 commit 1416dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/basekernels/periodic.jl
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
@test k(v1, v2) exp(-0.5 * sum(abs2, sinpi.(v1 - v2) ./ r))
@test k(v1, v2) == k(v2, v1)
@test PeriodicKernel(3)(v1, v2) == PeriodicKernel(; r=ones(3))(v1, v2)
@test isa(PeriodicKernel(r=Float32.(r))(Float32.(v1), Float32.(v2)), Float32)
@test repr(k) == "Periodic Kernel, length(r) = $(length(r))"

# Standardised tests.

0 comments on commit 1416dd2

Please sign in to comment.