r53030 - /trunk/dh-make-perl/t/Dependencies.t
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Feb 18 19:58:29 UTC 2010
Author: dmn
Date: Thu Feb 18 19:58:24 2010
New Revision: 53030
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=53030
Log:
Dependencies.t: add test for remove()
Modified:
trunk/dh-make-perl/t/Dependencies.t
Modified: trunk/dh-make-perl/t/Dependencies.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/Dependencies.t?rev=53030&op=diff
==============================================================================
--- trunk/dh-make-perl/t/Dependencies.t (original)
+++ trunk/dh-make-perl/t/Dependencies.t Thu Feb 18 19:58:24 2010
@@ -65,3 +65,9 @@
$list->add('libtest-simple-perl');
is( "$list", 'debhelper (>= 7), libmodule-build-perl, libtest-simple-perl',
'adding duplicated keeps order' );
+
+# the example for 'remove' from POD
+$list = Debian::Dependencies->new('foo (>= 1.2), bar');
+$list->remove('foo, bar (>= 2.0)');
+is( "$list", 'bar' );
+
More information about the Pkg-perl-cvs-commits
mailing list