Warnings in tests @25605 due to cmp_ok behavior change.
authorMichael G. Schwern <schwern@pobox.com>
Mon, 26 Sep 2005 14:21:09 +0000 (07:21 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 27 Sep 2005 06:40:09 +0000 (06:40 +0000)
Message-ID: <20050926212109.GA11036@windhund.schwern.org>

p4raw-id: //depot/perl@25610

lib/AutoSplit.t
lib/Pod/t/InputObjects.t

index f767a00..36d3368 100644 (file)
@@ -99,6 +99,8 @@ foreach (@tests) {
   foreach ($args{Name}, $args{Require}, $args{Extra}) {
     chomp $_ if defined $_;
   }
+  $args{Get} ||= '';
+
   my @extra_args = !defined $args{Extra} ? () : split /,/, $args{Extra};
   my ($output, $body);
   if ($args{File}) {
@@ -120,7 +122,7 @@ foreach (@tests) {
   }
 
   # test n+1
-  cmp_ok ($output, 'eq', $args{Get}, "Output from autosplit()ing $args{Name}");
+  is($output, $args{Get}, "Output from autosplit()ing $args{Name}");
 
   if ($args{Files}) {
     $args{Files} =~ s!/!:!gs if $^O eq 'MacOS';
index d086086..0beeb4e 100644 (file)
@@ -37,7 +37,7 @@ use_ok( 'Pod::InputObjects' );
     is( $p_p1->cmd_name(), 'head2', 'Pod::Paragraph->cmd_name()' );
     is( $p_p1->cmd_name( 'head1' ), 'head1', 
         'Pod::Paragraph->cmd_name( head1 )' );
-    cmp_ok( $p_p2->cmd_name(), 'eq', '',
+    ok( !$p_p2->cmd_name(),
         'Pod::Paragraph->cmd_name() revisited' );
 
     is( $p_p1->text(), 'NAME', 'Pod::Paragraph->text()' );