Move submodule and symlink to make paths simpler

This commit is contained in:
George Thomas 2025-12-02 08:51:14 +00:00
parent 6b2d6f29fd
commit 053c54a23e
4 changed files with 7 additions and 9 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "inputs/real"]
path = inputs/real
path = inputs/private
url = git@github.com:georgefst/aoc-private-inputs.git

View File

@ -22,14 +22,11 @@ main =
puzzleTest :: Puzzle a -> TestTree
puzzleTest p =
testGroup (show p.number) $
[ ("examples", "examples")
, ("real/2025", "real")
]
<&> \(inFile, outFile) ->
withResource (maybe (fail "parse failure") pure . p.parse =<< readFile ("inputs/" <> inFile <> "/" <> show p.number)) mempty \input ->
testGroup outFile $
["examples", "real"] <&> \t ->
withResource (maybe (fail "parse failure") pure . p.parse =<< readFile ("inputs/" <> t <> "/" <> show p.number)) mempty \input ->
testGroup t $
[("1", p.part1), ("2", p.part2)] <&> \(n, pp) ->
goldenVsString n ("outputs/" <> outFile <> "/" <> show p.number <> "/" <> n) $
goldenVsString n ("outputs/" <> t <> "/" <> show p.number <> "/" <> n) $
BL.fromStrict . encodeUtf8 . pp.solve <$> input
data Puzzle input = Puzzle

1
inputs/private Submodule

@ -0,0 +1 @@
Subproject commit ab940388ba53f2fef932d09aeb44443e2a9407b7

@ -1 +0,0 @@
Subproject commit ab940388ba53f2fef932d09aeb44443e2a9407b7

1
inputs/real Symbolic link
View File

@ -0,0 +1 @@
private/2025