Automatically turn on lights at dawn
This commit is contained in:
parent
f42a8747dd
commit
fd103125e3
6 changed files with 97 additions and 58 deletions
9
NightLight.Core.Tests/GenHelpers.fs
Normal file
9
NightLight.Core.Tests/GenHelpers.fs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
module NightLight.Core.Tests.GenHelpers
|
||||
|
||||
open FsCheck
|
||||
open FsCheck.FSharp
|
||||
|
||||
let concatGens (gens: Gen<'a list> list) : Gen<'a list> =
|
||||
match gens with
|
||||
| [] -> Gen.constant []
|
||||
| first :: rest -> rest |> List.fold (fun accGen g -> Gen.map2 (@) accGen g) first
|
||||
Loading…
Add table
Add a link
Reference in a new issue