aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-10-10 01:48:58 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-10-10 01:48:58 +0300
commitd3b2161bd17c25358422f84d282f4688c345a879 (patch)
tree7f0332b71eecae88e11f2d5f462f8f20cbb40606 /test
parent7556dc9e494d33bde276b0c3333e0a666338ad89 (diff)
downloadpandoc-d3b2161bd17c25358422f84d282f4688c345a879.tar.gz
Muse reader: fix parsing of empty cells
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 958a74915..35047ad4f 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -891,6 +891,17 @@ tests =
[[plain "", plain "Foo"],
[plain "", plain ""],
[plain "bar", plain ""]]
+ , "Empty cell in the middle" =:
+ T.unlines
+ [ " 1 | 2 | 3"
+ , " 4 | | 6"
+ , " 7 | 8 | 9"
+ ] =?>
+ table mempty [(AlignDefault, 0.0), (AlignDefault, 0.0), (AlignDefault, 0.0)]
+ []
+ [[plain "1", plain "2", plain "3"],
+ [plain "4", mempty, plain "6"],
+ [plain "7", plain "8", plain "9"]]
]
, testGroup "Lists"
[ "Bullet list" =: