From c09915ac604e76090d311019fa16697221c989a5 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Mon, 16 Mar 2026 20:01:10 +0100 Subject: [PATCH] Stop hardcoding elements --- NightLight.Core.Tests/InteractionListGenerators.fs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/NightLight.Core.Tests/InteractionListGenerators.fs b/NightLight.Core.Tests/InteractionListGenerators.fs index e8cbdf8..42d0f5f 100644 --- a/NightLight.Core.Tests/InteractionListGenerators.fs +++ b/NightLight.Core.Tests/InteractionListGenerators.fs @@ -37,14 +37,12 @@ let private genHumanInteraction = let private genRemoteInteraction = Gen.oneof - [ Gen.elements [ RemotePressedOnButton; RemotePressedOffButton ] + [ ArbMap.defaults + |> ArbMap.generate |> Gen.map BedroomControllingRemoteInteraction - Gen.elements - [ RemotePressedLeftButton - RemotePressedRightButton - LivingRoomRemotePressedOnButton - LivingRoomRemotePressedOffButton ] + ArbMap.defaults + |> ArbMap.generate |> Gen.map LivingRoomControllingRemoteInteraction ] let private genInteraction =