Skip to content

Commit

Permalink
Fix noise_type_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 4, 2023
1 parent 5901421 commit 2d223ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/noise_type_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 2d223ad

Please sign in to comment.