Kaydet (Commit) 55865f42 authored tarafından Barış Metin's avatar Barış Metin

add a new keyword to versions.

(a need for OOo package)
update test
üst 3eefda27
......@@ -33,8 +33,9 @@ keywords = {"alpha": 0,
"beta" : 1,
"pre" : 2,
"rc" : 3,
"NOKEY" : 4,
"p" : 5}
"m" : 4,
"NOKEY" : 5,
"p" : 6}
# helper functions
def has_keyword(versionitem):
......
......@@ -41,12 +41,15 @@ class VersionTestCase(unittest.TestCase):
v3 = Version("2.21")
v4 = Version("2.23_p1")
v5 = Version("2.23_beta1")
v6 = Version("2.23_m1")
self.assert_(v1 < v2)
self.assert_(v1 > v3)
self.assert_(v1 < v4)
self.assert_(v1 > v5)
self.assert_(v2 < v4)
self.assert_(v2 > v5)
self.assert_(v6 < v4)
self.assert_(v6 > v5)
v1 = Version("1.0_alpha1")
v2 = Version("1.0_alpha2")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment