aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-06-24 09:06:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-06-24 09:06:24 +0000
commiteafee2b9958466622118ada12560eafceaea0ff6 (patch)
tree266d50521874e0eafd5f176ea4e253a222085cac /t
parent368f0e443c8d5e1ce7d166eb35b7314141757390 (diff)
downloadperl-URPM-eafee2b9958466622118ada12560eafceaea0ff6.tar
perl-URPM-eafee2b9958466622118ada12560eafceaea0ff6.tar.gz
perl-URPM-eafee2b9958466622118ada12560eafceaea0ff6.tar.bz2
perl-URPM-eafee2b9958466622118ada12560eafceaea0ff6.tar.xz
perl-URPM-eafee2b9958466622118ada12560eafceaea0ff6.zip
adapt tests to ->compare change
Diffstat (limited to 't')
-rw-r--r--t/synthesis.t24
1 files changed, 15 insertions, 9 deletions
diff --git a/t/synthesis.t b/t/synthesis.t
index a16d909..6729b3b 100644
--- a/t/synthesis.t
+++ b/t/synthesis.t
@@ -2,7 +2,7 @@
use strict ;
use warnings ;
-use Test::More tests => 88;
+use Test::More tests => 94;
use URPM;
chdir 't' if -d 't';
@@ -98,20 +98,26 @@ my @files = $pkg->files;
ok(@files == 0);
ok($pkg->compare("6:2.2.4-25mdk") == 0);
-ok($pkg->compare("2.2.4-25mdk") == 0);
-ok($pkg->compare("2.2.4") == 0);
+ok($pkg->compare("2.2.4-25mdk") > 0);
+ok($pkg->compare("6:2.2.4") == 0);
ok($pkg->compare("2.2.3") > 0);
ok($pkg->compare("2.2") > 0);
ok($pkg->compare("2") > 0);
-ok($pkg->compare("2.2.4.0") < 0);
-ok($pkg->compare("2.2.5") < 0);
+ok($pkg->compare("2.2.4.0") > 0);
+ok($pkg->compare("2.2.5") > 0);
ok($pkg->compare("2.1.7") > 0);
-ok($pkg->compare("2.3.1") < 0);
-ok($pkg->compare("2.2.31") < 0);
+ok($pkg->compare("2.3.1") > 0);
+ok($pkg->compare("2.2.31") > 0);
ok($pkg->compare("2.2.4-25") > 0);
-ok($pkg->compare("2.2.4-25.1mdk") < 0);
+ok($pkg->compare("2.2.4-25.1mdk") > 0);
ok($pkg->compare("2.2.4-24mdk") > 0);
-ok($pkg->compare("2.2.4-26mdk") < 0);
+ok($pkg->compare("2.2.4-26mdk") > 0);
+ok($pkg->compare("6:2.2.4-25.1mdk") < 0);
+ok($pkg->compare("6:2.2.4.0") < 0);
+ok($pkg->compare("6:2.2.5") < 0);
+ok($pkg->compare("6:2.2.31") < 0);
+ok($pkg->compare("6:2.3.1") < 0);
+ok($pkg->compare("6:2.2.4-24mdk") > 0);
ok($pkg->compare("6:2.2.4-26mdk") < 0);
ok($pkg->compare("7:2.2.4-26mdk") < 0);
ok($pkg->compare("7:2.2.4-24mdk") < 0);