Add some synctatic sugar
This commit is contained in:
parent
0033fed73e
commit
2c051c0b3d
2 changed files with 6 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ type NightLightTests() =
|
|||
[<Property>]
|
||||
let ``All lights that are on should be white or yellow during the day`` () =
|
||||
concatGens
|
||||
[ Gen.bind genInitialInteractionsAndEndWith genTimeChangedToDay
|
||||
[ genInitialInteractionsAndEndWith =<< genTimeChangedToDay
|
||||
genInteractionsExcept isTimeChangedToNight ]
|
||||
|> Arb.fromGen
|
||||
|> Prop.forAll
|
||||
|
|
@ -53,7 +53,7 @@ type NightLightTests() =
|
|||
[<Property>]
|
||||
let ``All lights that are on should be red during the night`` () =
|
||||
concatGens
|
||||
[ Gen.bind genInitialInteractionsAndEndWith genTimeChangedToNight
|
||||
[ genInitialInteractionsAndEndWith =<< genTimeChangedToNight
|
||||
genInteractionsExcept isTimeChangedToDay ]
|
||||
|> Arb.fromGen
|
||||
|> Prop.forAll
|
||||
|
|
@ -105,9 +105,9 @@ type NightLightTests() =
|
|||
=
|
||||
let genInitialInteractionsListThatEndsWithTransitionToDay =
|
||||
concatGens
|
||||
[ Gen.bind genInitialInteractionsAndEndWith genTimeChangedToNight
|
||||
[ genInitialInteractionsAndEndWith =<< genTimeChangedToNight
|
||||
genInteractionsExcept isTimeChangedToDay
|
||||
Gen.map List.singleton genTimeChangedToDay ]
|
||||
genTimeChangedToDay |> Gen.map List.singleton ]
|
||||
|
||||
concatGens
|
||||
[ genInitialInteractionsListThatEndsWithTransitionToDay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue