From 2d223ad901c7d32af37b98dfad69b88a156c55e4 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 4 Nov 2023 03:26:29 -0400 Subject: [PATCH] Fix noise_type_test --- test/noise_type_test.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/noise_type_test.jl b/test/noise_type_test.jl index 32c421d2..ef1ffab6 100644 --- a/test/noise_type_test.jl +++ b/test/noise_type_test.jl @@ -96,7 +96,7 @@ prob = SDEProblem(drift,vol,u0,tspan, noise=W) sol = solve(prob,EM(),dt=0.01) @test sol.W.curt ≈ last(tspan) -@test typeof(sol.W) == prob.noise isa NoiseFunction +@test typeof(sol.W) == typeof(prob.noise) && prob.noise isa NoiseFunction @test objectid(prob.noise) != objectid(sol.W) sol = solve(prob,EM(),dt=1/1000,alias_noise=false) @@ -105,11 +105,11 @@ sol = solve(prob,EM(),dt=1/1000,alias_noise=false) sol = solve(prob,EM(),dt=0.01,alias_noise=true) @test sol.W.curt ≈ last(tspan) -@test typeof(sol.W) == prob.noise isa NoiseFunction +@test typeof(sol.W) == typeof(prob.noise) && prob.noise isa NoiseFunction @test objectid(prob.noise) != objectid(sol.W) sol = solve(prob,EM(),dt=0.01,alias_noise=false) @test sol.W.curt ≈ last(tspan) -@test typeof(sol.W) == prob.noise isa NoiseFunction +@test typeof(sol.W) == typeof(prob.noise) && prob.noise isa NoiseFunction @test objectid(prob.noise) == objectid(sol.W)