Skip to content

Commit

Permalink
Added tests for memory kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisola committed Jul 10, 2023
1 parent e547f31 commit 75790f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ using Test
@test WeakCoupling.cauchy_quadgk(x -> x^2, 0.0, 2.0, 1.0)[1] 4.0
@test WeakCoupling.hadamard_quadgk(x -> log(x+1), x -> 1/(x+1), 0.0, 2.0, 1.0)[1] -3*log(9)/4
end

@testset "Memory kernels" begin
Jlor = LorentzianSD(rand()*1.5, rand(), rand()/2)
ωtest = rand(50)*5
@test imag_memory_kernel_ft.(Jlor,ωtest) π*Jlor.(ωtest)
end
end

0 comments on commit 75790f0

Please sign in to comment.