Invert helper function
This commit is contained in:
parent
b9a318a5f1
commit
9bc76cdf8e
2 changed files with 5 additions and 5 deletions
|
|
@ -28,12 +28,12 @@ let private genInteractionsListThatStartsWithTimeChanged =
|
|||
return firstInteraction :: remainingInteractions
|
||||
}
|
||||
|
||||
let genInteractionListContaining containingInteraction afterFilter =
|
||||
let genInteractionListContaining containingInteraction disqualifiedAfter =
|
||||
gen {
|
||||
let genNonTrivialList =
|
||||
gen {
|
||||
let! before = genInteractionsListThatStartsWithTimeChanged
|
||||
let! after = Gen.listOf (genInteraction |> Gen.filter afterFilter)
|
||||
let! after = Gen.listOf (genInteraction |> Gen.filter (not << disqualifiedAfter))
|
||||
return before @ containingInteraction :: after
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue