Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let ``Dog Should Eat Squirrel If Adjacent`` () =
// Arrange
let customSquirrel = {Pos=newPos 3 6; ActorKind = Squirrel false; IsActive = true}
let testState = buildTestState
let state: GameState = {testState with World = {testState.World with Squirrel = customSquirrel}}
// Act
let newState = simulateActors state getRandomNumber
// Assert
newState.World.Doggo.Pos |> should equal testState.World.Squirrel.Pos
newState.World.Squirrel.IsActive |> should equal false
newState.SimState |> should equal Lost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.