Skip to content

Commit

Permalink
Update test/basictests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Oct 24, 2024
1 parent 60fe1e5 commit 1ca02b6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/basictests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,12 @@ end
end
end

hasStaticArraysExt = !isnothing(Base.get_extension(ExponentialUtilities,:ExponentialUtilitiesStaticArraysExt))
if hasStaticArraysExt
@testset "Static Arrays" begin
Random.seed!(0)
for N in (3,4,6,8),t in (0.1,1.0,10.0)
A = I+randn(SMatrix{N,N,Float64})/3
b = randn(SVector{N,Float64})
@test expv(t,A,b) exp(t*A)*b
end
@testset "Static Arrays" begin
Random.seed!(0)
for N in (3,4,6,8),t in (0.1,1.0,10.0)
A = I+randn(SMatrix{N,N,Float64})/3
b = randn(SVector{N,Float64})
@test expv(t,A,b) exp(t*A)*b
end
end

Expand Down

0 comments on commit 1ca02b6

Please sign in to comment.