Add a few basic test-cases for tilde in version comparison
This commit is contained in:
parent
db28221a4a
commit
0920d3339b
|
@ -90,6 +90,16 @@ RPMVERCMP(_+, _+, 0)
|
|||
RPMVERCMP(+, _, 0)
|
||||
RPMVERCMP(_, +, 0)
|
||||
|
||||
dnl Basic testcases for tilde sorting
|
||||
RPMVERCMP(1.0~rc1, 1.0~rc1, 0)
|
||||
RPMVERCMP(1.0~rc1, 1.0, -1)
|
||||
RPMVERCMP(1.0, 1.0~rc1, 1)
|
||||
RPMVERCMP(1.0~rc1, 1.0~rc2, -1)
|
||||
RPMVERCMP(1.0~rc2, 1.0~rc1, 1)
|
||||
RPMVERCMP(1.0~rc1~git123, 1.0~rc1~git123, 0)
|
||||
RPMVERCMP(1.0~rc1~git123, 1.0~rc1, -1)
|
||||
RPMVERCMP(1.0~rc1, 1.0~rc1~git123, 1)
|
||||
|
||||
dnl These are included here to document current, arguably buggy behaviors
|
||||
dnl for reference purposes and for easy checking against unintended
|
||||
dnl behavior changes.
|
||||
|
|
Loading…
Reference in New Issue