diff options
author | Or Neeman <oneeman@gmail.com> | 2017-02-25 03:31:40 -0600 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-25 10:31:40 +0100 |
commit | fa43e364493a1cba94f431d78b17c5651bf32a8d (patch) | |
tree | 26d44345b8b5128d0e01dce1a408a97f6f7433b0 /benchmark | |
parent | 59c673c61367e3899b1b7e7a98f4743bb64c43c5 (diff) | |
download | pandoc-fa43e364493a1cba94f431d78b17c5651bf32a8d.tar.gz |
Fix stale references to `tests` directory (#3469)
Some of the benchmarks were failing due to references to files in the
`tests` directory, which is now called `test`. A search found other
references to it also. This commit updates all these references.
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/benchmark-pandoc.hs | 6 | ||||
-rw-r--r-- | benchmark/weigh-pandoc.hs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/benchmark-pandoc.hs b/benchmark/benchmark-pandoc.hs index c01750b6e..7294c74a4 100644 --- a/benchmark/benchmark-pandoc.hs +++ b/benchmark/benchmark-pandoc.hs @@ -61,9 +61,9 @@ main = do matchWriter (_, _) = False let matchedReaders = filter matchReader readers let matchedWriters = filter matchWriter writers - inp <- readFile "tests/testsuite.txt" - lalune <- B.readFile "tests/lalune.jpg" - movie <- B.readFile "tests/movie.jpg" + inp <- readFile "test/testsuite.txt" + lalune <- B.readFile "test/lalune.jpg" + movie <- B.readFile "test/movie.jpg" time <- getCurrentTime let setupFakeFiles = modifyPureState $ \st -> st{ stFiles = FileTree $ Map.fromList [ diff --git a/benchmark/weigh-pandoc.hs b/benchmark/weigh-pandoc.hs index cf4099721..bbb92445a 100644 --- a/benchmark/weigh-pandoc.hs +++ b/benchmark/weigh-pandoc.hs @@ -3,7 +3,7 @@ import Text.Pandoc main :: IO () main = do - doc <- read <$> readFile "tests/testsuite.native" + doc <- read <$> readFile "test/testsuite.native" mainWith $ do func "Pandoc document" id doc mapM_ |