File: equal.t

package info (click to toggle)
libset-object-perl 1.02-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 104 kB
  • ctags: 26
  • sloc: perl: 148; makefile: 44
file content (24 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Set::Object;

require 't/Person.pm';
package Person;

populate();

my $simpsons1 = Set::Object->new($homer, $marge);
my $simpsons2 = Set::Object->new($homer, $marge);
my $bouviers = Set::Object->new($marge, $patty, $selma, $patty, $selma);

print "1..4\n";

print 'not ' unless $simpsons1 == $simpsons1;
print "ok 1\n";

print 'not ' if $simpsons1 != $simpsons1;
print "ok 2\n";

print 'not ' unless $simpsons1 != $bouviers;
print "ok 3\n";

print 'not ' if $simpsons1 == $bouviers;
print "ok 4\n";