Remove duplicate entries from MANIFEST
[p5sagit/p5-mst-13.2.git] / t / op / qr.t
CommitLineData
c2123ae3 1#!./perl -w
2
3use strict;
4
5require './test.pl';
6
7plan(tests => 12);
8
9sub r {
10 return qr/Good/;
11}
12
13my $a = r();
14isa_ok($a, 'Regexp');
15my $b = r();
16isa_ok($b, 'Regexp');
17
18my $b1 = $b;
19
20isnt($a + 0, $b + 0, 'Not the same object');
21
22bless $b, 'Pie';
23
24isa_ok($b, 'Pie');
25isa_ok($a, 'Regexp');
26isa_ok($b1, 'Pie');
27
28my $c = r();
29like("$c", qr/Good/);
30my $d = r();
31like("$d", qr/Good/);
32
33my $d1 = $d;
34
35isnt($c + 0, $d + 0, 'Not the same object');
36
37$$d = 'Bad';
38
39like("$c", qr/Good/);
40like("$d", qr/Bad/);
41like("$d1", qr/Bad/);