File: member.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 (15 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Set::Object;

print "1..3\n";

my $s = Set::Object->new(qw(a b c 0));

print "not " unless $s->member('a') eq 'a';
print "ok 1\n";

print "not " unless $s->element('0') eq '0';
print "ok 2\n";

print "not " if defined $s->member('1');
print "ok 3\n";