File: sxpr.t

package info (click to toggle)
libdata-stag-perl 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,484 kB
  • ctags: 753
  • sloc: perl: 6,394; lisp: 141; xml: 116; ansic: 55; makefile: 17; sh: 2
file content (21 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use lib 't';
use lib '.';

BEGIN {
    # to handle systems with no installed Test module
    # we include the t dir (where a copy of Test.pm is located)
    # as a fallback
    eval { require Test; };
    use Test;    
    plan tests => 2;
}
use Data::Stag qw(:all);
use strict;

my $x = Data::Stag->parsestr("(set(component(part_of(c2))))");
print $x->xml;

my $p = $x->get('component/part_of');
ok($p);
print $p->xml;
ok(!$p->sget_c2);