This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2372186
)
D'oh! 27508 wasn't quite testing what I wanted it to test. This does.
author
Nicholas Clark
<nick@ccl4.org>
Wed, 15 Mar 2006 18:47:32 +0000
(18:47 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 15 Mar 2006 18:47:32 +0000
(18:47 +0000)
p4raw-id: //depot/perl@27510
lib/overload.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/overload.t
b/lib/overload.t
index
b12cf27
..
6dafa07
100644
(file)
--- a/
lib/overload.t
+++ b/
lib/overload.t
@@
-1232,7
+1232,6
@@
foreach my $op (qw(<=> == != < <= > >=)) {
use overload '""' => sub {"CLiK KLAK"};
package Ksshfwoom;
- use overload '""' => sub {"OOOKK AWK"};
package main;
@@
-1248,8
+1247,8
@@
foreach my $op (qw(<=> == != < <= > >=)) {
bless $obj, 'Ksshfwoom';
-
is ($obj, "OOOKK AWK"
);
-
is ($ref, "OOOKK AWK"
);
+
like ($obj, qr/^Ksshfwoom=/
);
+
like ($ref, qr/^Ksshfwoom=/
);
undef $obj;
is ($ref, undef);