Initial commit

This commit is contained in:
Alexander Kobjolke 2023-11-29 21:29:32 +01:00
commit 88cbe81d08
15 changed files with 3807 additions and 0 deletions

0
test/data/foo.txt Normal file
View file

10
test/doctest/Doctest.hs Normal file
View file

@ -0,0 +1,10 @@
-- | Rn the doctest executable
module Main (main) where
import System.Process (callProcess)
doctest :: [String] -> IO ()
doctest = callProcess "doctest"
main :: IO ()
main = doctest ["--fast", "src"]

View file

@ -0,0 +1,11 @@
module AoCSpec.InternalSpec (spec) where
import AoC.Internal
import Test.Hspec
spec :: Spec
spec = do
describe "solveRiddle" do
it "runs the given solver" do
solveRiddle "test/data/foo.txt" pure `shouldReturn` ()

1
test/spec/Spec.hs Normal file
View file

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}