@@ -225,29 +225,29 @@ let
225
225
# Test ODE simulations with integer coefficients.
226
226
oprob_int = ODEProblem (rs_int, u0, tspan, ps_int)
227
227
oprob_int_ref = ODEProblem (rs_ref_int, u0, tspan, ps_int)
228
- @test solve (oprob_int, Tsit5 ()) == solve (oprob_int_ref, Tsit5 ())
228
+ @test solve (oprob_int, Tsit5 ()) ≈ solve (oprob_int_ref, Tsit5 ())
229
229
230
230
# Test ODE simulations with decimal coefficients.
231
231
oprob_dec = ODEProblem (rs_dec, u0, tspan, ps_dec; combinatoric_ratelaws = false )
232
232
oprob_dec_ref = ODEProblem (rs_ref_dec, u0, tspan, ps_dec; combinatoric_ratelaws = false )
233
- @test solve (oprob_dec, Tsit5 ()) == solve (oprob_dec_ref, Tsit5 ())
233
+ @test solve (oprob_dec, Tsit5 ()) ≈ solve (oprob_dec_ref, Tsit5 ())
234
234
235
235
# Test SDE simulations with integer coefficients.
236
236
sprob_int = SDEProblem (rs_int, u0, tspan, ps_int)
237
237
sprob_int_ref = SDEProblem (rs_ref_int, u0, tspan, ps_int)
238
- @test solve (sprob_int, ImplicitEM (); seed) == solve (sprob_int_ref, ImplicitEM (); seed)
238
+ @test solve (sprob_int, ImplicitEM (); seed) ≈ solve (sprob_int_ref, ImplicitEM (); seed)
239
239
240
240
# Test SDE simulations with decimal coefficients.
241
241
sprob_dec = SDEProblem (rs_dec, u0, tspan, ps_dec; combinatoric_ratelaws = false )
242
242
sprob_dec_ref = SDEProblem (rs_ref_dec, u0, tspan, ps_dec; combinatoric_ratelaws = false )
243
- @test solve (sprob_dec, ImplicitEM (); seed) == solve (sprob_dec_ref, ImplicitEM (); seed)
243
+ @test solve (sprob_dec, ImplicitEM (); seed) ≈ solve (sprob_dec_ref, ImplicitEM (); seed)
244
244
245
245
# Tests jump simulations with integer coefficients.
246
246
dprob_int = DiscreteProblem (rs_int, u0, tspan, ps_int)
247
247
dprob_int_ref = DiscreteProblem (rs_ref_int, u0, tspan, ps_int)
248
248
jprob_int = JumpProblem (rs_int, dprob_int, Direct (); rng)
249
249
jprob_int_ref = JumpProblem (rs_ref_int, dprob_int_ref, Direct (); rng)
250
- @test solve (jprob_int, SSAStepper (); seed) == solve (jprob_int_ref, SSAStepper (); seed)
250
+ @test solve (jprob_int, SSAStepper (); seed) ≈ solve (jprob_int_ref, SSAStepper (); seed)
251
251
end
252
252
253
253
# Check that jump simulations (implemented with and without symbolic stoichiometries) yield simulations
0 commit comments