summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-29 18:44:05 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-29 18:44:05 +0000
commit93b319b4efc086d22e6244b32afb215482748b03 (patch)
treea5682f486afffcc414437fbfc094058214e51af9
parentf4c00ba7091a6f8fa3e346ed54d2e338757208b0 (diff)
downloadportage-93b319b4efc086d22e6244b32afb215482748b03.tar.gz
portage-93b319b4efc086d22e6244b32afb215482748b03.tar.bz2
portage-93b319b4efc086d22e6244b32afb215482748b03.zip
Add test cases for implicit .0 at end of version. (trunk r15160)
svn path=/main/branches/2.1.7/; revision=15228
-rw-r--r--pym/portage/tests/versions/test_vercmp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/tests/versions/test_vercmp.py b/pym/portage/tests/versions/test_vercmp.py
index 6af909567..22ab2aa10 100644
--- a/pym/portage/tests/versions/test_vercmp.py
+++ b/pym/portage/tests/versions/test_vercmp.py
@@ -16,6 +16,7 @@ class VerCmpTestCase(TestCase):
("1.0-r1", "1.0-r0"),
("1.0-r1", "1.0"),
("999999999999999999999999999999", "999999999999999999999999999998"),
+ ("1.0.0", "1.0"),
("12.2.5", "12.2b"),
]
for test in tests:
@@ -33,6 +34,7 @@ class VerCmpTestCase(TestCase):
("1.01", "1.1"),
("1.0-r0", "1.0-r1"),
("1.0", "1.0-r1"),
+ ("1.0", "1.0.0"),
("12.2b", "12.2.5"),
]
for test in tests:
@@ -58,6 +60,7 @@ class VerCmpTestCase(TestCase):
("1.0-r1", "1.0-r0"),
("1.0", "1.0-r1"),
("1.0-r1", "1.0"),
+ ("1.0", "1.0.0"),
("12.2b", "12.2"),
]
for test in tests: