You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test a scenario where I'm comparing two versions: A (Semver("1.0.0", Semver.LOOSE)) and B (Semver("1.0", Semver.LOOSE)). Comparing these two versions yields extremely inconsistent results
Scenario:A.isEqualTo(B), Result:false
Scenario:A.isGreaterThan(B), Result:false
Scenario:A.isLowerThan(B), Result:true
After flipping the operands, the result remains weirdly the same,
Scenario:B.isEqualTo(A), Result:false
Scenario:B.isGreaterThan(A), Result:false (expected to be true)
Scenario:B.isLowerThan(A), Result:true (expected to be false)
Library version:3.1.0
The text was updated successfully, but these errors were encountered:
tejasjadhav
changed the title
Missing patch number in one Semver breaks the comparison logic
Missing patch number in one of the Semver breaks the comparison logic
Mar 6, 2023
I'm trying to test a scenario where I'm comparing two versions: A (
Semver("1.0.0", Semver.LOOSE)
) and B (Semver("1.0", Semver.LOOSE)
). Comparing these two versions yields extremely inconsistent resultsA.isEqualTo(B)
, Result:false
A.isGreaterThan(B)
, Result:false
A.isLowerThan(B)
, Result:true
After flipping the operands, the result remains weirdly the same,
B.isEqualTo(A)
, Result:false
B.isGreaterThan(A)
, Result:false
(expected to betrue
)B.isLowerThan(A)
, Result:true
(expected to befalse
)Library version:
3.1.0
The text was updated successfully, but these errors were encountered: