Commit 59ab1599 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add a test for parsing version strings



...even in the presence of patch levels.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent edc6dbc6
......@@ -32,6 +32,7 @@ class ParseVersionTest(unittest.TestCase):
self.assertEquals(version.ParseVersion("2.10"), (2, 10, 0))
self.assertEquals(version.ParseVersion("2.10.1"), (2, 10, 1))
self.assertEquals(version.ParseVersion("2.10.1~beta2"), (2, 10, 1))
self.assertEquals(version.ParseVersion("2.10.1-3"), (2, 10, 1))
self.assertEquals(version.ParseVersion("2"), None)
self.assertEquals(version.ParseVersion("pink bunny"), None)
......
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