git.iko.soy/typeable/pandoc
on master help sign in
ConTeXt unit tests - tweak code property.

Inline code will never have two consecutive newlines. We get a counterexample in this case https://pipelines.actions.githubusercontent.com/bMXCpShstkkHbFPgw9hBRMWw2w9plyzdVM8r7CRPFBHFvidaAG/5cf52d2d-3804-412d-ae65-4f8c059b0fb7/_apis/pipelines/1/runs/116/signedlogcontent/39?urlExpires=2019-09-23T17%3A38%3A05.8358735Z&urlSigningMethod=HMACV1&urlSignature=Qtd6vnzqgSwXpAkIyp9DJY4Kn7GJzYMR8UDkLR%2FsMQY%3D so for simplicity we just weed out code with newlines.

commite99050283edfd976ffba51256140a252d1e26508 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 23 Sep 2019, 15:03 (7 years ago) parent67822bd
1 file changed+1−1
test/Tests/Writers/ConTeXt.hs+1−1
test/Tests/Writers/ConTeXt.hs+1−1
@@ -44,7 +44,7 @@ tests :: [TestTree]
4444tests = [ testGroup "inline code"
4545 [ "with '}'" =: code "}" =?> "\\mono{\\}}"
4646 , "without '}'" =: code "]" =?> "\\type{]}"
47− , testProperty "code property" $ \s -> null s ||
47+ , testProperty "code property" $ \s -> null s || '\n' `elem` s ||
4848 if '{' `elem` s || '}' `elem` s
4949 then context' (code s) == "\\mono{" ++
5050 context' (str s) ++ "}"