Skip to content

Commit

Permalink
zipWith
Browse files Browse the repository at this point in the history
  • Loading branch information
mlang committed Jan 8, 2025
1 parent 7156b05 commit 7de63a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ polyglot = testGroup "Polyglot" [

perftSuite :: TestTree
perftSuite = testGroup "PerftSuite" $ map f info where
f (fen, ds) = testGroup fen $ map g (zip [1..] ds) where
g (n, d) = testCase ("Depth=" ++ show n ++ ", Nodes=" ++ show d) $
perft n <$> fromFEN fen @?= Just d
f (fen, ds) = testGroup fen $ zipWith g [1..] ds where
g n d = testCase ("Depth=" ++ show n ++ ", Nodes=" ++ show d) $
perft n <$> fromFEN fen @?= Just d
info = [
("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", [20, 400, 8902, 197281, 4865609, 119060324]),
("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1", [48, 2039, 97862, 4085603, 193690690]),
Expand Down

0 comments on commit 7de63a8

Please sign in to comment.