table tests

This commit is contained in:
Yan Pashkovsky 2018-11-03 00:26:12 +03:00 committed by John MacFarlane
parent 165e3bfffc
commit 43a0734f62

View file

@ -106,5 +106,16 @@ tests = [
"cb1"=:
".nf\naa\n\tbb\n.fi"
=?> codeBlock "aa\n\tbb"
],
testGroup "Tables" [
"t1" =:
".TS\nallbox;\nl l l.\na\tb\tc\nd\te\tf\n.TE"
=?> table mempty (replicate 3 (AlignLeft, 0.0)) [] [
map (plain . str ) ["a", "b", "c"],
map (plain . str ) ["d", "e", "f"]
],
"longcell" =:
".TS\n;\nr.\nT{\na\nb\nc d\nT}\nf\n.TE"
=?> table mempty [(AlignRight, 0.0)] [] [[plain $ text "a b c d"], [plain $ str "f"]]
]
]