r55210 - /trunk/dh-make-perl/t/core-modules.t

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Wed Mar 31 05:58:45 UTC 2010


Author: dmn
Date: Wed Mar 31 05:58:39 2010
New Revision: 55210

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=55210
Log:
core-modules.t: fix M:CoreList 2.17 test and add one that with non-existent version

Modified:
    trunk/dh-make-perl/t/core-modules.t

Modified: trunk/dh-make-perl/t/core-modules.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/core-modules.t?rev=55210&op=diff
==============================================================================
--- trunk/dh-make-perl/t/core-modules.t (original)
+++ trunk/dh-make-perl/t/core-modules.t Wed Mar 31 05:58:39 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 4;
+use Test::More tests => 5;
 
 use Debian::AptContents;
 
@@ -15,9 +15,13 @@
 is( $apt->find_core_perl_dependency( 'Module::CoreList', '2.12' ), 'perl (>= 5.10.0)',
     'Module::CoreList 2.12 is in 5.10' );
 
-# 2.17 is in 5.8.9, which is not in Debian
-is( $apt->find_core_perl_dependency( 'Module::CoreList', '2.17' ), undef,
-    'Module::CoreList 2.17 is not in core' );
+# 2.17 is in 5.10.1, which is not in Debian
+is( $apt->find_core_perl_dependency( 'Module::CoreList', '2.17' ), 'perl (>= 5.10.1)',
+    'Module::CoreList 2.17 is in 5.10.1' );
+
+# try with an impossibly high version that should never exist
+is( $apt->find_core_perl_dependency( 'Module::CoreList', '999999.9' ), undef,
+    'Module::CoreList 999999.9 is nowhere' );
 
 # try a bogus module
 is( $apt->find_core_perl_dependency( 'Foo::Bar', undef ), undef,




More information about the Pkg-perl-cvs-commits mailing list