File: 05-partial.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 (12 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl 

use strict;
use warnings;

use Test::More tests => 3;
use XML::Writer::Simple partial => 1, tags => [qw/a b c d e/];


is(start_a(),"<a>\n");
is(start_a({foo=>'bar'}),"<a foo=\"bar\">\n");
is(end_e(),"</e>\n");