From 6d17fa3e8ed46c3b796428cc4fa42fe76ca99615 Mon Sep 17 00:00:00 2001 From: frssp Date: Tue, 2 Apr 2019 10:13:17 +0100 Subject: [PATCH] fix test --- test/runtests.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 60b7868..632f251 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,7 +11,6 @@ using Test dQ = (Qf-Qi)/NQ x = range(Qi, stop = Qf, length = NQ) ħω = 1 - e, v = solve1D_ev_amu(x->harmonic(x, ħω; param = Dict("E0" => 0, "Q0" => 0)), NQ = NQ , Qi = Qi, Qf = Qf, nev = nev) - analytic_sol = UnitRange(0, nev) + e, v = solve1D_ev_amu(x->harmonic(x, ħω,; E₀ = 0, Q₀ = 0), NQ = NQ , Qi = Qi, Qf = Qf, nev = nev) @test isapprox(e, 0.5 .+ UnitRange(0, nev-1) ; rtol=etol) end