EPUB tests: don't use joinPath, which varies across platforms.
Instead, use a forward-slash to join paths, regardless of the
platform. This matches the way MediaBag now works.
See
56e4ecab20 (commitcomment-10858449)
This commit is contained in:
parent
e1d6be4e30
commit
095b05e4f9
1 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,6 @@ import qualified Data.ByteString.Lazy as BL
|
|||
import Text.Pandoc.Readers.EPUB
|
||||
import Text.Pandoc.MediaBag (MediaBag, mediaDirectory)
|
||||
import Control.Applicative
|
||||
import System.FilePath (joinPath)
|
||||
import Text.Pandoc.Error
|
||||
|
||||
getMediaBag :: FilePath -> IO MediaBag
|
||||
|
@ -24,7 +23,11 @@ testMediaBag fp bag = do
|
|||
(actBag == bag)
|
||||
|
||||
featuresBag :: [(String, String, Int)]
|
||||
featuresBag = [(joinPath ["img","check.gif"],"image/gif",1340),(joinPath ["img","check.jpg"],"image/jpeg",2661),(joinPath ["img","check.png"],"image/png",2815),(joinPath ["img","multiscripts_and_greek_alphabet.png"],"image/png",10060)]
|
||||
featuresBag = [("img/check.gif","image/gif",1340)
|
||||
,("img/check.jpg","image/jpeg",2661)
|
||||
,("img/check.png","image/png",2815)
|
||||
,("img/multiscripts_and_greek_alphabet.png","image/png",10060)
|
||||
]
|
||||
|
||||
tests :: [Test]
|
||||
tests =
|
||||
|
|
Loading…
Add table
Reference in a new issue