From 75790f085efcd42b31fbefed3587439b18017f62 Mon Sep 17 00:00:00 2001 From: Federico Cerisola Date: Mon, 10 Jul 2023 10:27:40 +0100 Subject: [PATCH] Added tests for memory kernels --- test/runtests.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 8fedda7..aca5872 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 \ No newline at end of file