File: 00config.t

package info (click to toggle)
libxml-sax-machines-perl 0.46-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 436 kB
  • sloc: perl: 1,767; makefile: 9
file content (33 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use strict;

use Test;
use XML::SAX::Machines;
use XML::SAX::Machine;  ## Need to register the option names

my @tests = (
sub {
    ok(
        XML::SAX::Machines->processor_class_option(
            "XML::SAX::Machine",
            "ConstructWithHashedOptions"
        ) ? 1 : 0,
        1,
        "XML::SAX::Machine's ConstructWithHashedOptions",
    );
},
sub {
    ok(
        XML::SAX::Machines->processor_class_option(
            "XML::SAX::Pipeline",
            "ConstructWithHashedOptions"
        ) ? 1 : 0,
        1,
        "XML::SAX::Machine's ConstructWithHashedOptions",
    );
},

);

plan tests => scalar @tests ;

$_->() for @tests;