File: boolean.t

package info (click to toggle)
libset-object-perl 1.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 620 kB
  • sloc: perl: 1,069; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use Set::Object;
print "1..2\n";

my @a = qw(One Two Three);     
my @b = qw(Four Five Six);
 
my $ssa = Set::Object->new(@a);
my $ssb = Set::Object->new(@b);
 
print "not " unless $ssa;
print "ok 1\n";

my $is = $ssa->intersection($ssb);
print "not " if $is->size;
print "ok 2 - $is\n";