Skip to content

Commit 236bf47

Browse files
mohsen-ghaffari1992wasowski
authored andcommitted
Spec tests for Pump
1 parent 56f64f5 commit 236bf47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/scala/symsim/examples/concrete/pumping/PumpSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class PumpSpec
3939
"The tank level never can be negative" in check {
4040
forAll (flow, head, head_mean, tank, time, water, past_head_mean, actions) {
4141
(f, h, hm, tl, t, w, phm, a) =>
42-
val (s1, r) = Pump.step (PumpState (f, h, hm, tl, t, w, phm)) (a).head
43-
s1.tl >= TANK_MIN
42+
for (s1, r) <- Pump.step (PumpState (f, h, hm, tl, t, w, phm)) (a)
43+
yield s1.tl >= TANK_MIN
4444
}
4545
}
4646

0 commit comments

Comments
 (0)