summaryrefslogtreecommitdiffstats
path: root/cnucnu/tests
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2009-08-07 13:52:14 +0200
committerTill Maas <opensource@till.name>2009-08-07 13:52:14 +0200
commite4a419aaa27e26c7c753504ae57d4212bbb52727 (patch)
tree995b7d790750879687725d7781d61d51d8678fe3 /cnucnu/tests
parent7f98d4fcfa86f43ff317106c7bc4b75bb672bbcf (diff)
downloadcnucnu-e4a419aaa27e26c7c753504ae57d4212bbb52727.tar.gz
cnucnu-e4a419aaa27e26c7c753504ae57d4212bbb52727.tar.xz
cnucnu-e4a419aaa27e26c7c753504ae57d4212bbb52727.zip
add more tests and some that will fail (commented)
Diffstat (limited to 'cnucnu/tests')
-rwxr-xr-xcnucnu/tests/helper_test.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/cnucnu/tests/helper_test.py b/cnucnu/tests/helper_test.py
index 514842e..170427d 100755
--- a/cnucnu/tests/helper_test.py
+++ b/cnucnu/tests/helper_test.py
@@ -94,7 +94,17 @@ class HelperTest(unittest.TestCase):
def test_upstream_max_pre(self):
self.test_upstream_max_sorted(["4.0.1", "4.0.0", "4.0.0-pre2", "4.0.0pre1"])
- self.test_upstream_max_sorted(["1.2a", "1.2", "1.2pre"])
+ self.test_upstream_max_sorted(["1.2.1", "1.2b", "1.2a", "1.2", "1.2pre"])
+ self.test_upstream_max_sorted(["1.3", "1.2"])
+
+
+# def test_perl_versioning(self):
+# """ 1.20 is newer than 1.902 """
+# self.test_upstream_max_sorted(["1.20", "1.902", "1.901", "1.18"])
+
+# def test_upstream_gnu_prerelease(self):
+# """ 1.2a and 1.2b are preleases here """
+# self.test_upstream_max_sorted(["1.2", "1.2a", "1.2b", "1.1"])
def test_get_rc(self):
self.assertEqual(get_rc("0.4.pre2.fc11"), "pre2")