Skip to content

Commit

Permalink
Restyled by fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Sep 22, 2024
1 parent b98116b commit 94ef62f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ module Swarm.Game.Scenario.Topography.Structure.Overlay (
OverlayPair (..),
) where

import Debug.Trace (trace)
import Control.Applicative
import Data.Function (on)
import Data.Int (Int32)
import Data.Tuple (swap)
import Debug.Trace (trace)
import Linear hiding (trace)
import Swarm.Game.Location
import Swarm.Game.Scenario.Topography.Area
Expand Down
8 changes: 4 additions & 4 deletions test/unit/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ main :: IO ()
main = do
defaultMain statelessTests

-- ms <- runExceptT classicGame0
-- case ms of
-- Left err -> assertFailure (from err)
-- Right s -> defaultMain (stateDependentTests s)
-- ms <- runExceptT classicGame0
-- case ms of
-- Left err -> assertFailure (from err)
-- Right s -> defaultMain (stateDependentTests s)

-- | Initializing an 'AppState' entails
-- loading challenge scenarios, etc. from
Expand Down
26 changes: 12 additions & 14 deletions test/unit/TestOverlay.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,29 +98,27 @@ testOverlay =
]
, testGroup
"Northwesterly offset of first sibling"
[

-- testMergedSize
[ -- testMergedSize
-- "test merged size"
-- (placeUnshifted "baseLayer" (Location 0 0) [[]])
-- (placeUnshifted "sibling1" (Location (-1) 1) oneByOneGrid)
-- (AreaDimensions 1 1)

-- , testMergedSize
-- "test merged size"
-- (place (Location 1 (-1)) "sibling1" (Location (-1) 1) oneByOneGrid)
-- (placeUnshifted "sibling2" (Location 0 0) twoByTwoGrid)
-- (AreaDimensions 3 3)
-- ,

mkOverlaySequenceOriginTest
"positive first south of second"
[ placeUnshifted "sibling1" (Location (-1) 1) oneByOneGrid
, placeUnshifted "sibling2" (Location 0 0) twoByTwoGrid
-- [ placeUnshifted "sibling2" (Location 0 0) twoByTwoGrid
-- , placeUnshifted "sibling1" (Location (-1) 1) oneByOneGrid
]
(Location 1 (-1))
-- ,

mkOverlaySequenceOriginTest
"positive first south of second"
[ placeUnshifted "sibling1" (Location (-1) 1) oneByOneGrid
, placeUnshifted "sibling2" (Location 0 0) twoByTwoGrid
-- [ placeUnshifted "sibling2" (Location 0 0) twoByTwoGrid
-- , placeUnshifted "sibling1" (Location (-1) 1) oneByOneGrid
]
(Location 1 (-1))
]
]
]
Expand Down

0 comments on commit 94ef62f

Please sign in to comment.