Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15223 - main/branches/2.1.7/pym/portage/tests/versions
Date: Fri, 29 Jan 2010 18:43:16
Message-Id: E1NavoD-0005Ig-Dr@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-01-29 18:43:08 +0000 (Fri, 29 Jan 2010)
3 New Revision: 15223
4
5 Modified:
6 main/branches/2.1.7/pym/portage/tests/versions/test_vercmp.py
7 Log:
8 Add some tests related to bug #287848. (trunk r15155)
9
10 Modified: main/branches/2.1.7/pym/portage/tests/versions/test_vercmp.py
11 ===================================================================
12 --- main/branches/2.1.7/pym/portage/tests/versions/test_vercmp.py 2010-01-29 18:22:13 UTC (rev 15222)
13 +++ main/branches/2.1.7/pym/portage/tests/versions/test_vercmp.py 2010-01-29 18:43:08 UTC (rev 15223)
14 @@ -15,7 +15,9 @@
15 tests = [ ( "6.0", "5.0"), ("5.0","5"),
16 ("1.0-r1", "1.0-r0"),
17 ("1.0-r1", "1.0"),
18 - ("999999999999999999999999999999", "999999999999999999999999999998"),]
19 + ("999999999999999999999999999999", "999999999999999999999999999998"),
20 + ("12.2.5", "12.2b"),
21 + ]
22 for test in tests:
23 self.failIf( vercmp( test[0], test[1] ) <= 0, msg="%s < %s? Wrong!" % (test[0],test[1]) )
24
25 @@ -30,7 +32,9 @@
26 ("999999999999999999999999999998", "999999999999999999999999999999"),
27 ("1.01", "1.1"),
28 ("1.0-r0", "1.0-r1"),
29 - ("1.0", "1.0-r1")]
30 + ("1.0", "1.0-r1"),
31 + ("12.2b", "12.2.5"),
32 + ]
33 for test in tests:
34 self.failIf( vercmp( test[0], test[1]) >= 0, msg="%s > %s? Wrong!" % (test[0],test[1]))
35
36 @@ -53,6 +57,8 @@
37 ("1.0-r0", "1.0-r1"),
38 ("1.0-r1", "1.0-r0"),
39 ("1.0", "1.0-r1"),
40 - ("1.0-r1", "1.0")]
41 + ("1.0-r1", "1.0"),
42 + ("12.2b", "12.2"),
43 + ]
44 for test in tests:
45 self.failIf( vercmp( test[0], test[1]) == 0, msg="%s == %s? Wrong!" % (test[0],test[1]))