Format
This commit is contained in:
parent
2cd2341673
commit
5b24dc1238
@ -29,15 +29,18 @@ puzzle =
|
|||||||
, withResource
|
, withResource
|
||||||
(Seq.fromList . takeUntil noneAccessible . fmap snd . generateFrames . mkGrid <$> input)
|
(Seq.fromList . takeUntil noneAccessible . fmap snd . generateFrames . mkGrid <$> input)
|
||||||
mempty
|
mempty
|
||||||
\frames -> testGroup "frames" let nFrames = if isRealData then 58 else 9 in
|
\frames ->
|
||||||
( [0 .. nFrames] <&> \n ->
|
testGroup
|
||||||
goldenVsStringDiff (show n) diffCommand (path <> "frames/" <> show n) $
|
"frames"
|
||||||
TL.encodeUtf8 . maybe "frame list too short!" drawGrid . Seq.lookup n <$> frames
|
let nFrames = if isRealData then 58 else 9
|
||||||
)
|
in ( [0 .. nFrames] <&> \n ->
|
||||||
<> [ testCase "end" do
|
goldenVsStringDiff (show n) diffCommand (path <> "frames/" <> show n) $
|
||||||
Just g <- Seq.lookup nFrames <$> frames
|
TL.encodeUtf8 . maybe "frame list too short!" drawGrid . Seq.lookup n <$> frames
|
||||||
assertBool "accessible tile found" $ noneAccessible g
|
)
|
||||||
]
|
<> [ testCase "end" do
|
||||||
|
Just g <- Seq.lookup nFrames <$> frames
|
||||||
|
assertBool "accessible tile found" $ noneAccessible g
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user