Skip to content

Commit

Permalink
increase code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingWorkshop committed Dec 16, 2024
1 parent a907982 commit e3d38aa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constructors/epca4.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
struct EPCA4{
FT1<:Function,
FT2<:Function,
FT2<:Union{Function, FunctionWrapper},
MT<:AbstractMatrix{<:Real},
OT<:Options
} <: EPCA
Expand Down Expand Up @@ -29,7 +29,7 @@ function EPCA(
indim::Integer,
outdim::Integer,
Bg::Function,
g::Function,
g::Union{Function, FunctionWrapper},
::Val{(:Bg, :g)};
options::Options = Options()
)
Expand Down
16 changes: 16 additions & 0 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,21 @@ function run_EPCA_tests(
X;
rtol=1e-7
)

test_equivalence(
"Bg, G",
M1,
A1,
EPCA(
indim,
outdim,
Bg,
G,
Val((:Bg, :G));
options = options
),
X;
rtol=1e-7
)
end
end

0 comments on commit e3d38aa

Please sign in to comment.