From 8d22bf26abe37657b65b008286210cfd69957ed9 Mon Sep 17 00:00:00 2001
From: Jesse Rosenthal <jrosenthal@jhu.edu>
Date: Tue, 9 Sep 2014 11:05:47 -0400
Subject: [PATCH] LaTeX writer: Test for protecting images in header.

---
 tests/Tests/Writers/LaTeX.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 78b2495c7..4d2d3fc05 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -60,6 +60,9 @@ tests = [ testGroup "code blocks"
             definitionList [(text "foo", [header 2 (text "bar"),
                                           para $ text "baz"])] =?>
             "\\begin{description}\n\\item[foo] ~ \n\\subsection{bar}\n\nbaz\n\\end{description}"
+          , "containing image" =:
+            header 1 (image "imgs/foo.jpg" "" (text "Alt text")) =?>
+            "\\section{\\protect\\includegraphics{imgs/foo.jpg}}"
           ]
         , testGroup "inline code"
           [ "struck out and highlighted" =: