diff --git a/tests/RunTests.hs b/tests/RunTests.hs index 688731317..2fa89bfeb 100644 --- a/tests/RunTests.hs +++ b/tests/RunTests.hs @@ -106,7 +106,7 @@ main = do "latex-reader.latex" "latex-reader.native" r11 <- runTest "native reader" ["-r", "native", "-w", "native", "-s"] "testsuite.native" "testsuite.native" - r14 <- runTest "markdown reader (citations)" ["-r", "markdown", "-w", "plain", "--bibliography", "biblio.bib", "--csl", "chicago-author-date.csl"] "markdown-citations.txt" "markdown-citations.plain" + r14s <- mapM (\style -> runTest ("markdown reader (citations) (" ++ style ++ ")") ["-r", "markdown", "-w", "html", "--bibliography", "biblio.bib", "--csl", style ++ ".csl"] "markdown-citations.txt" ("markdown-citations." ++ style ++ ".html")) ["chicago-author-date","ieee","mhra"] r12s <- if runLhsTests then mapM runLhsWriterTest lhsWriterFormats else putStrLn "Skipping lhs writer tests because they presuppose highlighting support" >> return [] @@ -121,8 +121,7 @@ main = do , r9 -- html , r10 -- latex , r11 -- native - , r14 -- citations - ] ++ r12s ++ r13s + ] ++ r12s ++ r13s ++ r14s if all id results then do putStrLn "\nAll tests passed." diff --git a/tests/markdown-citations.chicago-author-date.html b/tests/markdown-citations.chicago-author-date.html new file mode 100644 index 000000000..92ee8d770 --- /dev/null +++ b/tests/markdown-citations.chicago-author-date.html @@ -0,0 +1,56 @@ +
[@nonexistent]
@nonexistent
Doe (2005) says blah. Doe (2005, 30) says blah. Doe (2005, 30, with suffix) says blah. Doe (2005; 2006, 30; see also Doe and Roe 2007) says blah.
In a note.1 A citation group (see Doe 2005, 34-35; also Doe and Roe 2007, chap. 3). Another one (see Doe 2005, 34-35). And another one in a note.2 Citation with a suffix and locator (Doe 2005, 33, 35-37, and nowhere else). Citation with suffix only (Doe 2005, and nowhere else).
Now some modifiers.3
Doe, John. 2005. First Book. Cambridge: Cambridge University Press.
---. 2006. Article. Journal of Generic Studies 6: 33-34.
Doe, John, and Jenny Roe. 2007. Why Water Is Wet. In Third Book, ed. Sam Smith. Oxford: Oxford University Press.
[@nonexistent]
@nonexistent
Reference [1] says blah. Reference [1] says blah. Reference [1] says blah. Reference [1] says blah.
In a note.1 A citation group [1],[3]. Another one [1]. And another one in a note.2 Citation with a suffix and locator [1]. Citation with suffix only [1].
Now some modifiers.3
[1] J. Doe, First Book, Cambridge: Cambridge University Press, 2005.
[2] J. Doe, “Article”, Journal of Generic Studies, vol. 6, 2006, pp. 33-34.
[3] J. Doe and J. Roe, “Why Water Is Wet”, Third Book, Smith, S., Ed., Oxford: Oxford University Press, 2007.
[@nonexistent]
@nonexistent
John Doe1 says blah. Doe2 says blah. Doe3 says blah. Doe4 says blah.
In a note.5 A citation group.6 Another one.7 And another one in a note.8 Citation with a suffix and locator.9 Citation with suffix only.10
Now some modifiers.11
Doe, John, ‘Article’, Journal of Generic Studies, 6 (2006), 33-34.
---, First Book (Cambridge: Cambridge University Press, 2005).
Doe, John, and Jenny Roe, ‘Why Water Is Wet’, in Third Book, ed by Sam Smith (Oxford: Oxford University Press, 2007).
First Book (Cambridge: Cambridge University Press, 2005). ↩
First Book, p. 30. ↩
First Book, p. 30, with suffix. ↩
First Book; ‘Article’, Journal of Generic Studies, 6 (2006), 33-34 (p. 30); see also John Doe and Jenny Roe, ‘Why Water Is Wet’, in Third Book, ed by Sam Smith (Oxford: Oxford University Press, 2007). ↩
A citation without locators Doe and Roe. ↩
See Doe, First Book, pp. 34-35; also Doe and Roe, chap. 3. ↩
See Doe, First Book, pp. 34-35. ↩
Some citations see Doe, Article, 33-34 (chap. 3); Doe and Roe; Doe, First Book. ↩
Doe, First Book, pp. 33, 35-37, and nowhere else. ↩
Doe, First Book, and nowhere else. ↩
Like a citation without author: First Book, and now Doe with a locator Article, 33-34 (p. 44). ↩