diff options
author | Simon McVittie <smcv@debian.org> | 2019-09-29 18:42:40 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-09-29 18:43:30 +0100 |
commit | 62890d911ae75eaf2d2622c1c33a5d956d33e9d8 (patch) | |
tree | 0c8eda50f677111a6e1e3582332d26763e6fd80e /t | |
parent | d5fb38bd0f7110f6b7ec3779ba5df922ba7e69e3 (diff) | |
download | ikiwiki-62890d911ae75eaf2d2622c1c33a5d956d33e9d8.tar ikiwiki-62890d911ae75eaf2d2622c1c33a5d956d33e9d8.tar.gz |
cannot reproduce new bug
Diffstat (limited to 't')
-rwxr-xr-x | t/table.t | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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{<td>\s*Not ASCII\s*</td>.*<td>\s*¬\s*</td>}s); SKIP: { skip "Text::CSV unavailable", 0 unless eval q{use Text::CSV; 1}; + $blob = readfile("t/tmp/out/jon.html"); + like($blob, qr{<th>\s*Number\s*</th>\s*<th>\s*Title\s*</th>\s*<th>\s*Own\?\s*</th>\s*<th>\s*Read\?\s*</th>}s); + like($blob, qr{<td>\s*I \(HB1\), 70 \(PB1\), 5 \(PB50\)\s*</td>\s*<td>\s*Dune\s*</td>\s*<td>\s*O\s*</td>\s*<td>\s*✓\s*</td>}s); + $blob = readfile("t/tmp/out/csv.html"); like($blob, qr{<th>\s*Key\s*</th>.*<th>\s*Value\s*</th>}s); like($blob, qr{<td>\s*ASCII\s*</td>.*<td>\s*hello\s*</td>}s); |