Skip to content

Latest commit

 

History

History
29 lines (12 loc) · 826 Bytes

File metadata and controls

29 lines (12 loc) · 826 Bytes

CompareVersions

A utility which compares the two version numbers, version1 and version2

If version1 > version2 return 1

If version1 < version2 return -1

otherwise, return 0

For example,

0.1 < 1.1 < 1.2 < 1.2.9.9.9.9 < 1.3 < 1.3.4 < 1.10

Added an executable file and unit test file

To execute the unit test file :


python CompareVersions_test.py