From 26748da6d4fc6912f1ef314fb01f9969d8a5fc59 Mon Sep 17 00:00:00 2001
From: John MacFarlane <fiddlosopher@gmail.com>
Date: Mon, 16 Jul 2012 10:14:43 -0700
Subject: Don't recognize inline-markup starts inside words.

For example, "2*2 = 4*1" should not contain an emphasized
section.  Added test case for "Literal symbols".  Closes #569.
---
 tests/rst-reader.native | 4 +++-
 tests/rst-reader.rst    | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

(limited to 'tests')

diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index bf794c849..c99e73f07 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -320,4 +320,6 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":
 ,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
 ,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
 ,Para [Str "Reset",Space,Str "default",Str "-",Str "role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default",Str "."]
-,Para [Str "And",Space,Str "now",Space,Str "`",Str "some",Str "-",Str "invalid",Str "-",Str "string",Str "-",Str "3231231",Str "`",Space,Str "is",Space,Str "nonsense",Str "."]]
+,Para [Str "And",Space,Str "now",Space,Str "`",Str "some",Str "-",Str "invalid",Str "-",Str "string",Str "-",Str "3231231",Str "`",Space,Str "is",Space,Str "nonsense",Str "."]
+,Header 2 [Str "Literal",Space,Str "symbols"]
+,Para [Str "2",Str "*",Str "2",Space,Str "=",Space,Str "4",Str "*",Str "1"]]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index abe6d4f69..4d81ccb85 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -593,3 +593,7 @@ Reset default-role to the default default.
 
 And now `some-invalid-string-3231231` is nonsense.
 
+Literal symbols
+---------------
+
+2*2 = 4*1
-- 
cgit v1.2.3