Skip to content

Commit

Permalink
Spec tests for Pump
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghaffari1992 authored and wasowski committed Nov 9, 2022
1 parent 56f64f5 commit 236bf47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class PumpSpec
"The tank level never can be negative" in check {
forAll (flow, head, head_mean, tank, time, water, past_head_mean, actions) {
(f, h, hm, tl, t, w, phm, a) =>
val (s1, r) = Pump.step (PumpState (f, h, hm, tl, t, w, phm)) (a).head
s1.tl >= TANK_MIN
for (s1, r) <- Pump.step (PumpState (f, h, hm, tl, t, w, phm)) (a)
yield s1.tl >= TANK_MIN
}
}

Expand Down

0 comments on commit 236bf47

Please sign in to comment.