Skip to content

Is this correct behaviour when comparing versions #38

Closed
@piotrooo

Description

@piotrooo

Using

compile 'com.vdurmont:semver4j:2.0.3'
Semver A = new Semver("2.0", Semver.SemverType.LOOSE);
Semver B = new Semver("2.0.0", Semver.SemverType.LOOSE);
A.isGreaterThan(B); // -> false
B.isGreaterThan(A); // -> false
B.isEquivalentTo(A); // -> false
A.isEquivalentTo(B); // -> false
B.isLowerThan(A); // -> true
A.isLowerThan(B); // -> true

Original issue: vdurmont/semver4j#15

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions