File: easy_module.t

package info (click to toggle)
libxml-easy-perl 0.011-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 520 kB
  • sloc: perl: 2,200; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use warnings;
use strict;

use Test::More tests => 18;

BEGIN { $SIG{__WARN__} = sub { die "WARNING: $_[0]" }; }

my @funcs = qw(
	xml10_read_content xml10_read_element
	xml10_read_document xml10_read_extparsedent
	xml10_write_content xml10_write_element
	xml10_write_document xml10_write_extparsedent
);

use_ok "XML::Easy";
ok defined(&{"XML::Easy::$_"}) foreach @funcs;
ok \&{"XML::Easy::$_"} == \&{"XML::Easy::Text::$_"} foreach @funcs;
use_ok "XML::Easy", @funcs;

1;