Get rid of an intermediate variable
This commit is contained in:
parent
2c051c0b3d
commit
0ddcd17fd4
1 changed files with 3 additions and 7 deletions
|
|
@ -103,14 +103,10 @@ type NightLightTests() =
|
|||
let ``After a new day starts, all lights that have power should be on as long as the 'Off' button isn't pressed``
|
||||
()
|
||||
=
|
||||
let genInitialInteractionsListThatEndsWithTransitionToDay =
|
||||
concatGens
|
||||
[ genInitialInteractionsAndEndWith =<< genTimeChangedToNight
|
||||
genInteractionsExcept isTimeChangedToDay
|
||||
genTimeChangedToDay |> Gen.map List.singleton ]
|
||||
|
||||
concatGens
|
||||
[ genInitialInteractionsListThatEndsWithTransitionToDay
|
||||
genTimeChangedToDay |> Gen.map List.singleton
|
||||
genInteractionsExcept ((=) (HumanInteraction RemotePressedOffButton)) ]
|
||||
|> Arb.fromGen
|
||||
|> Prop.forAll
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue