Sha256: 4aa4aa19f2bb766ec2c2824e56860edb103f411f32fa770e686808a744f5f023
Contents?: true
Size: 1.69 KB
Versions: 1
Compression:
Stored size: 1.69 KB
Contents
use Test; # -*- mode: perl6 -*- use Pod::To::HTML; plan 4; my $r; =table col1 col2 $r = pod2html $=pod[0]; #say $r.perl; ok $r ~~ ms[[ '<table class="pod-table">' '<tbody>' '<tr>' '<td>' col1 '</td>' '<td>' col2 '</td>' '</tr>' '</tbody>' '</table>' ]]; =table H1 H2 -- -- col1 col2 $r = pod2html $=pod[1]; #say $r.perl; ok $r ~~ ms[[ '<table class="pod-table">' '<thead>' '<tr>' '<th>' H1 '</th>' '<th>' H2 '</th>' '</tr>' '</thead>' '<tbody>' '<tr>' '<td>' col1 '</td>' '<td>' col2 '</td>' '</tr>' '</tbody>' '</table>' ]]; =begin table :class<sorttable> H1 H2 -- -- col1 col2 col1 col2 =end table $r = pod2html $=pod[2]; #say $r.perl; ok $r ~~ ms[[ '<table class="pod-table sorttable">' '<thead>' '<tr>' '<th>' H1 '</th>' '<th>' H2 '</th>' '</tr>' '</thead>' '<tbody>' '<tr>' '<td>' col1 '</td>' '<td>' col2 '</td>' '</tr>' '<tr>' '<td>' col1 '</td>' '<td>' col2 '</td>' '</tr>' '</tbody>' '</table>' ]]; =begin table :caption<Test Caption> H1 H2 -- -- col1 col2 =end table $r = pod2html $=pod[3]; # say $r; ok $r ~~ ms[[ '<table class="pod-table">' '<caption>' 'Test Caption' '</caption>' '<thead>' '<tr>' '<th>' H1 '</th>' '<th>' H2 '</th>' '</tr>' '</thead>' '<tbody>' '<tr>' '<td>' col1 '</td>' '<td>' col2 '</td>' '</tr>' '</tbody>' '</table>' ]];
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github-markup-3.0.2 | vendor/Pod-To-HTML/t/060-table.t |