@@ -15,10 +15,8 @@ module Tests.Readers.LaTeX (tests) where
1515import Data.Text (Text)
1616import qualified Data.Text as T
1717import qualified Text.Pandoc.UTF8 as UTF8
18−import Text.Pandoc.Readers.LaTeX (tokenize, untokenize)
1918import Test.Tasty
2019import Test.Tasty.HUnit
21−import Test.Tasty.QuickCheck
2220import Tests.Helpers
2321import Text.Pandoc
2422import Text.Pandoc.Arbitrary ()
@@ -47,21 +45,8 @@ simpleTable' aligns rows
4745 where
4846 toRow = Row nullAttr . map simpleCell
4947
50−tokUntokRt :: String -> Bool
51−tokUntokRt s = untokenize (tokenize "random" t) == t
52− where t = T.pack s
53−
5448tests :: [TestTree]
55−tests = [ testGroup "tokenization"
56− [ testCase "tokenizer round trip on test case" $ do
57− orig <- UTF8.readFile "../test/latex-reader.latex"
58− let new = untokenize $ tokenize "../test/latex-reader.latex"
59− orig
60− assertEqual "untokenize . tokenize is identity" orig new
61− , testProperty "untokenize . tokenize is identity" tokUntokRt
62− ]
63−
64− , testGroup "basic"
49+tests = [ testGroup "basic"
6550 [ "simple" =:
6651 "word" =?> para "word"
6752 , "space" =: