git.iko.soy/typeable/pandoc
on master help sign in
test-pandoc: removed need to depend on MissingH.
commit2a075e9d7a31303efa823f1779c2b32f9fb8a14f authorJohn MacFarlane <jgm@berkeley.edu> dateWed 15 Dec 2010, 18:07 (16 years ago) parent605648c
2 files changed+4−4
pandoc.cabal+2−2 src/test-pandoc.hs+2−2
pandoc.cabal+2−2
@@ -291,5 +291,5 @@ Executable test-pandoc
291291 Buildable: False
292292 else
293293 Ghc-Options: -Wall
294− Build-Depends: base >= 4 && < 5, Diff, MissingH
295−
294+ Build-Depends: base >= 4 && < 5, Diff
295+ Other-Modules: Text.Pandoc.Shared
src/test-pandoc.hs+2−2
@@ -21,7 +21,7 @@ import System.Environment
2121import System.Exit
2222import Text.Printf
2323import Data.Algorithm.Diff
24−import Data.String.Utils ( replace )
24+import Text.Pandoc.Shared ( substitute )
2525import Prelude hiding ( readFile )
2626import qualified Data.ByteString.Lazy as B
2727import Data.ByteString.Lazy.UTF8 (toString, fromString)
@@ -167,7 +167,7 @@ runLatexCitationTests o n
167167 where
168168 o' = o ++ ["--" ++ n]
169169 f = n ++ "-citations.latex"
170− normalize = replace "\160" " " . replace "\8211" "-"
170+ normalize = substitute "\160" " " . substitute "\8211" "-"
171171 rt = runTestWithNormalize normalize
172172
173173runWriterTest :: String -> IO Bool