aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-20 22:36:40 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-20 22:36:40 -0800
commit52b6e38425ca4ce1b95fa8e92daaa7f10f7d3a5b (patch)
tree03988f861cb1ee52e894b0dbd904b9a6af7555d8 /tests/Tests
parent8894b1a030145d903afea6e21dc61172a5f7c6c0 (diff)
downloadpandoc-52b6e38425ca4ce1b95fa8e92daaa7f10f7d3a5b.tar.gz
Updated tests for new native format.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Old.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Tests/Old.hs b/tests/Tests/Old.hs
index 50b6b2111..d73d731fb 100644
--- a/tests/Tests/Old.hs
+++ b/tests/Tests/Old.hs
@@ -12,6 +12,7 @@ import System.Exit
import Data.Algorithm.Diff
import Text.Pandoc.Shared ( substitute, normalize, defaultWriterOptions )
import Text.Pandoc.Writers.Native ( writeNative )
+import Text.Pandoc.Readers.Native ( readNative )
import Text.Pandoc.Highlighting ( languages )
import Prelude hiding ( readFile )
import qualified Data.ByteString.Lazy as B
@@ -128,7 +129,7 @@ lhsReaderTest :: String -> Test
lhsReaderTest format =
testWithNormalize normalizer "lhs" ["-r", format, "-w", "native"]
("lhs-test" <.> format) "lhs-test.native"
- where normalizer = writeNative defaultWriterOptions . normalize . read
+ where normalizer = writeNative defaultWriterOptions . normalize . readNative
latexCitationTests :: String -> Test
latexCitationTests n