File: 10-autoload.t

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

use Test::More tests => 1;
use SVG ( -auto => 1 );

my $svg = SVG->new( -foo => "bar" );

ok( eval { $svg->make->it->up->as->we->go->along; },
    "autoload arbitrary xml tags" );

#--> currently this is allowed, in fact. It just has no effect.
#print("Failed in rejecting -auto argument") and exit(0)
#    if eval {
#        my $svg=new SVG(-auto => 1);
#	1;
#    };