Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
arch:
- x64
group:
- 'Aqua'
- 'Transform'
- 'BaseKernels'
- 'Kernels'
Expand Down
4 changes: 1 addition & 3 deletions src/distances/sinus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ Distances.parameters(d::Sinus) = d.r

Distances.result_type(::Sinus{T}, Ta::Type, Tb::Type) where {T} = promote_type(T, Ta, Tb)

@inline function Distances._evaluate(
d::Sinus, a::AbstractVector, b::AbstractVector
) where {T}
@inline function Distances._evaluate(d::Sinus, a::AbstractVector, b::AbstractVector)
@boundscheck if (length(a) != length(b)) || length(a) != length(d.r)
throw(
DimensionMismatch(
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Expand All @@ -17,6 +18,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Aqua = "0.5"
AxisArrays = "0.4.3"
Compat = "3"
Distances = "0.10"
Expand Down
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using KernelFunctions
using AxisArrays
using Aqua
using Distances
using Documenter
using Functors: functor
Expand Down Expand Up @@ -59,6 +60,13 @@ const GROUP = get(ENV, "GROUP", "")
include("test_utils.jl")

@testset "KernelFunctions" begin
if GROUP == "" || GROUP == "Aqua"
@testset "Aqua" begin
Aqua.test_all(KernelFunctions; ambiguities=false)
Aqua.test_ambiguities(KernelFunctions; recursive=false)
# Avoid checking extra package ambiguity issues
end
end
if GROUP == "" || GROUP == "Transform"
@testset "transform" begin
include("transform/transform.jl")
Expand Down