Improve variable name
This commit is contained in:
parent
d4653bbc7f
commit
555a64db08
1 changed files with 2 additions and 2 deletions
|
|
@ -103,14 +103,14 @@ 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 ``After a new day starts, all lights that have power should be on as long as the 'Off' button isn't pressed``
|
||||||
()
|
()
|
||||||
=
|
=
|
||||||
let genInitialTransitionToDay =
|
let genInitialInteractionsListThatEndsWithTransitionToDay =
|
||||||
concatGens
|
concatGens
|
||||||
[ Gen.bind genInteractionListThatStartsWithTimeChangedAndEndsWith genTimeChangedToNight
|
[ Gen.bind genInteractionListThatStartsWithTimeChangedAndEndsWith genTimeChangedToNight
|
||||||
genInteractionListExcept isTimeChangedToDay
|
genInteractionListExcept isTimeChangedToDay
|
||||||
Gen.map List.singleton genTimeChangedToDay ]
|
Gen.map List.singleton genTimeChangedToDay ]
|
||||||
|
|
||||||
concatGens
|
concatGens
|
||||||
[ genInitialTransitionToDay
|
[ genInitialInteractionsListThatEndsWithTransitionToDay
|
||||||
genInteractionListExcept ((=) (HumanInteraction RemotePressedOffButton)) ]
|
genInteractionListExcept ((=) (HumanInteraction RemotePressedOffButton)) ]
|
||||||
|> Arb.fromGen
|
|> Arb.fromGen
|
||||||
|> Prop.forAll
|
|> Prop.forAll
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue