Skip to content

Commit

Permalink
Merge pull request #555 from SciML/ChrisRackauckas-patch-6
Browse files Browse the repository at this point in the history
Fix noise_type_test
  • Loading branch information
ChrisRackauckas authored Nov 4, 2023
2 parents 5901421 + 2d223ad commit efc7ee9
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 efc7ee9

Please sign in to comment.