diff options
Diffstat (limited to 'tests/Hakyll')
-rw-r--r-- | tests/Hakyll/Web/Pandoc/Biblio/Tests.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Pandoc/Biblio/Tests.hs b/tests/Hakyll/Web/Pandoc/Biblio/Tests.hs index fb98f08..9135086 100644 --- a/tests/Hakyll/Web/Pandoc/Biblio/Tests.hs +++ b/tests/Hakyll/Web/Pandoc/Biblio/Tests.hs @@ -1,5 +1,6 @@ -------------------------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE CPP #-} module Hakyll.Web.Pandoc.Biblio.Tests ( tests ) where @@ -36,7 +37,11 @@ goldenTest01 :: TestTree goldenTest01 = goldenVsString "biblio01" +#if MIN_VERSION_pandoc(2,11,3) (goldenTestsDataDir </> "biblio01.golden") +#else + (goldenTestsDataDir </> "biblio01-pre-pandoc-2.11.3.golden") +#endif (do -- Code lifted from https://github.com/jaspervdj/hakyll-citeproc-example. logger <- Logger.new Logger.Error |