Message-ID: <Pine.SOL.4.10.
10204031618150.20955-100000@maxwell.phys.lafayette.edu>
p4raw-id: //depot/perl@15717
# $RCSfile: dbm.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:43 $
-use Test::More;
-
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require Config; import Config;
+ require Test::More; import Test::More;
if (($Config{'extensions'} !~ /\b(DB|[A-Z]DBM)_File\b/) ){
- plan skip_all => "1..0 # Skipping (no DB_File or [A-Z]DBM_File)\n";
+ plan(skip_all, "1..0 # Skipping (no DB_File or [A-Z]DBM_File)\n");
}
else {
- plan tests => 12;
+ plan(tests, 12);
}
-
}
require AnyDBM_File;
# This tests the behavior of sort() under the different 'use sort' forms.
# Algorithm by John P. Linderman.
-use strict;
-use warnings;
-
my ($BigWidth, $BigEnough, $RootWidth, $ItemFormat, @TestSizes, $WellSoaked);
BEGIN {
}
}
+use strict;
+use warnings;
+
use Test::More tests => @TestSizes * 2 # sort() tests
* 4 # number of pragmas to test
+ 1 # extra test for qsort instability