summaryrefslogtreecommitdiff
path: root/lib/Test/More.pm
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-10-09 15:24:43 +0000
committerSteve Peters <steve@fisharerojo.org>2005-10-09 15:24:43 +0000
commit845d7e37127991657355cc3e4fd6b4d012f8f30d (patch)
tree767f2cc27468710a091234e24a7e46f705d8180b /lib/Test/More.pm
parentdaee519f495809ae063fbab716cf4f57acd78c97 (diff)
downloadperl-845d7e37127991657355cc3e4fd6b4d012f8f30d.tar.gz
Upgrade to Test-Simple-0.62.
p4raw-id: //depot/perl@25718
Diffstat (limited to 'lib/Test/More.pm')
-rw-r--r--lib/Test/More.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Test/More.pm b/lib/Test/More.pm
index c305dd038b..8289ec095d 100644
--- a/lib/Test/More.pm
+++ b/lib/Test/More.pm
@@ -16,7 +16,7 @@ sub _carp {
use vars qw($VERSION @ISA @EXPORT %EXPORT_TAGS $TODO);
-$VERSION = '0.61';
+$VERSION = '0.62';
$VERSION = eval $VERSION; # make the alpha version come out as a number
use Test::Builder::Module;
@@ -765,6 +765,10 @@ is_deeply() compares the dereferenced values of references, the
references themselves (except for their type) are ignored. This means
aspects such as blessing and ties are not considered "different".
+is_deeply() current has very limited handling of function reference
+and globs. It merely checks if they have the same referent. This may
+improve in the future.
+
Test::Differences and Test::Deep provide more in-depth functionality
along these lines.
@@ -862,7 +866,7 @@ sub _type {
return '' if !ref $thing;
- for my $type (qw(ARRAY HASH REF SCALAR GLOB Regexp)) {
+ for my $type (qw(ARRAY HASH REF SCALAR GLOB CODE Regexp)) {
return $type if UNIVERSAL::isa($thing, $type);
}
@@ -1250,6 +1254,10 @@ sub _deep_check {
$ok = _deep_check($$e1, $$e2);
pop @Data_Stack if $ok;
}
+ elsif( $type ) {
+ push @Data_Stack, { type => $type, vals => [$e1, $e2] };
+ $ok = 0;
+ }
else {
_whoa(1, "No type in _deep_check");
}