File: 06-html.t

package info (click to toggle)
libxml-writer-simple-perl 0.08-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 128 kB
  • sloc: perl: 256; xml: 7; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl 

use Test::More tests => 2;
use XML::Writer::Simple ':html';

is(p("foo"), "<p>foo</p>");

is(table(Tr([td([qw.a b c.]),
             td([qw.d e f.]),
             td([qw.g h i.])]))."\n", <<EOH);
<table><tr><td>a</td><td>b</td><td>c</td></tr><tr><td>d</td><td>e</td><td>f</td></tr><tr><td>g</td><td>h</td><td>i</td></tr></table>
EOH