Rewrite two tests with Prop.classify instead
This commit is contained in:
parent
79405b3841
commit
f22f31ee6c
3 changed files with 29 additions and 24 deletions
|
|
@ -31,6 +31,17 @@ let genBiasedInteractionsExcept biasTowardsLight disqualifier =
|
|||
let genBiasedInteractions biasTowardsLight =
|
||||
genBiasedInteractionsExcept biasTowardsLight (fun _ -> false)
|
||||
|
||||
let genInteractions = genInteraction None |> Gen.listOf
|
||||
|
||||
let getPartOfDayAfterInteractions interactions =
|
||||
interactions
|
||||
|> Seq.choose (fun interaction ->
|
||||
match interaction with
|
||||
| Interaction.TimeChanged time -> Some time
|
||||
| _ -> None)
|
||||
|> Seq.last
|
||||
|> getPartOfDay
|
||||
|
||||
let ensureStartsWithTimeChanged (genInteractions: Gen<Interaction list>) =
|
||||
genInteractions
|
||||
|> Gen.bind (fun interactions ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue