Skip to content

Commit

Permalink
Restyled by fourmolu (#1452)
Browse files Browse the repository at this point in the history
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
restyled-io[bot] and restyled-commits authored Aug 23, 2023
1 parent 36e260b commit ab0f5fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/integration/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Main where

import Control.Carrier.Lift (runM)
import Control.Carrier.Throw.Either (runThrow)
import Control.Lens (Ixed (ix), to, use, view, (&), (.~), (<>~), (^.), (^..), (^?!), at)
import Control.Lens (Ixed (ix), at, to, use, view, (&), (.~), (<>~), (^.), (^..), (^?!))
import Control.Monad (forM_, unless, when)
import Control.Monad.State (StateT (runStateT), gets)
import Data.Char (isSpace)
Expand All @@ -31,7 +31,7 @@ import Swarm.Doc.Gen qualified as DocGen
import Swarm.Game.CESK (emptyStore, getTickNumber, initMachine)
import Swarm.Game.Entity (EntityMap, lookupByName)
import Swarm.Game.Failure (SystemFailure)
import Swarm.Game.Robot (LogEntry, defReqs, equippedDevices, leText, machine, robotContext, robotLog, waitingUntil, systemRobot)
import Swarm.Game.Robot (LogEntry, defReqs, equippedDevices, leText, machine, robotContext, robotLog, systemRobot, waitingUntil)
import Swarm.Game.Scenario (Scenario)
import Swarm.Game.State (
GameState,
Expand Down Expand Up @@ -305,13 +305,13 @@ testScenarioSolutions rs ui =
, testSolution Default "Testing/1320-world-DSL/override"
]
]
, testSolution' Default "Testing/1430-built-robot-ownership.yaml" CheckForBadErrors $ \g -> do
let r2 = g ^. robotMap . at 2
let r3 = g ^. robotMap . at 3
assertBool "The second built robot should be a system robot like it's parent." $
maybe False (view systemRobot) r2
assertBool "The third built robot should be a normal robot like base." $
maybe False (not . view systemRobot) r3
, testSolution' Default "Testing/1430-built-robot-ownership.yaml" CheckForBadErrors $ \g -> do
let r2 = g ^. robotMap . at 2
let r3 = g ^. robotMap . at 3
assertBool "The second built robot should be a system robot like it's parent." $
maybe False (view systemRobot) r2
assertBool "The third built robot should be a normal robot like base." $
maybe False (not . view systemRobot) r3
]
where
-- expectFailIf :: Bool -> String -> TestTree -> TestTree
Expand Down

0 comments on commit ab0f5fe

Please sign in to comment.