flexver: fix ASCII value for '.' in comment
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib48589583e34742da5ca7d173ac0f0756a6a6964
This commit is contained in:
parent
838ba82790
commit
e19df15ae5
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ mod tests {
|
||||||
assert!(cmp("sodium-1.0.1", "sodium-1.0.0").is_gt());
|
assert!(cmp("sodium-1.0.1", "sodium-1.0.0").is_gt());
|
||||||
|
|
||||||
// File extensions are NOT stripped - they're part of the version string
|
// File extensions are NOT stripped - they're part of the version string
|
||||||
// "sodium-1.0.0.jar" < "sodium-1.0.0~1.jar" because '.' (48) < '~' (126)
|
// "sodium-1.0.0.jar" < "sodium-1.0.0~1.jar" because '.' (46) < '~' (126)
|
||||||
assert!(cmp("sodium-1.0.0.jar", "sodium-1.0.0~1.jar").is_lt());
|
assert!(cmp("sodium-1.0.0.jar", "sodium-1.0.0~1.jar").is_lt());
|
||||||
assert!(cmp("sodium-1.0.0~1.jar", "sodium-1.0.0.jar").is_gt());
|
assert!(cmp("sodium-1.0.0~1.jar", "sodium-1.0.0.jar").is_gt());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue