INNER CODE UNIT · Python
test_version_sort
mongodb/mongo-cxx-driver · etc/calc_release_version_selftest.py:7
def test_version_sort(self):
# At time of writing, `input_tags` is the output of `git tag -l "r3.*"`:
input_tags = [
'3.0.0',
'3.0.0-rc0',
'3.0.1',
'3.0.2',
'3.0.3',
'3.1.0',
'3.1.0-beta0',
'3.1.0-rc0',
'3.1.1',
'3.1.2',
'3.1.3',
'3.1.4',
'3.2.0',
'3.2.0-rc0',
'3.2.0-rc1',