Skip to content

Commit 65ef450

Browse files
committed
improve test for brmesolve
1 parent db466f0 commit 65ef450

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/core-test/brmesolve.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ end
107107
times = LinRange(0, 10, 100)
108108

109109
for (me_c_ops, brme_c_ops, brme_a_ops) in arg_sets
110-
me = mesolve(H, ψ0, times, me_c_ops, e_ops = e_ops)
110+
me = mesolve(H, ψ0, times, me_c_ops, e_ops = e_ops, progre)
111111
brme = brmesolve(H, ψ0, times, brme_a_ops, brme_c_ops, e_ops = e_ops)
112112

113-
for (me_expect, brme_expect) in zip(me.expect, brme.expect)
114-
@test me_expect == brme_expect
115-
end
113+
@test all(me.expect .== brme.expect)
116114
end
117115
end;

0 commit comments

Comments
 (0)