X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/db54e632f4263e6b7f644c3060076079e1f350cd..cca55f6922ffdecfc30adda6ebab110e1377a57b:/t/table.t diff --git a/t/table.t b/t/table.t index d7e9e6ff0..a7bbc06bf 100755 --- a/t/table.t +++ b/t/table.t @@ -48,6 +48,12 @@ Key | Value ASCII | hello Not ASCII | ¬ """]]'); +write_old_file("jon.mdwn", +'(See doc/bugs/table_can_not_deal_with_Chinese.mdwn) + +[[!table class=fullwidth_table delimiter=" " data=""" +Number Title Own? Read? +I (HB1), 70 (PB1), 5 (PB50) Dune O ✓"""]]'); ok(! system(@command)); ok(! system(@command, "--refresh")); @@ -60,6 +66,10 @@ like($blob, qr{\s*Not ASCII\s*.*\s*¬\s*}s); SKIP: { skip "Text::CSV unavailable", 0 unless eval q{use Text::CSV; 1}; + $blob = readfile("t/tmp/out/jon.html"); + like($blob, qr{\s*Number\s*\s*\s*Title\s*\s*\s*Own\?\s*\s*\s*Read\?\s*}s); + like($blob, qr{\s*I \(HB1\), 70 \(PB1\), 5 \(PB50\)\s*\s*\s*Dune\s*\s*\s*O\s*\s*\s*✓\s*}s); + $blob = readfile("t/tmp/out/csv.html"); like($blob, qr{\s*Key\s*.*\s*Value\s*}s); like($blob, qr{\s*ASCII\s*.*\s*hello\s*}s);