-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an admin command to compare 2 package versions
This is meant for quick sanity checks for example. - Added some basic tests to cover the command. Signed-off-by: Mathieu Barbin <[email protected]>
- Loading branch information
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
N0REP0 | ||
### opam admin compare-versions 0.0.9 0.0.10 | ||
0.0.9 < 0.0.10 | ||
### opam admin compare-versions 1.2.3 1.2.3~preview | ||
1.2.3 > 1.2.3~preview | ||
### opam admin compare-versions 1.2.3 1.2.3-option | ||
1.2.3 < 1.2.3-option | ||
### opam admin compare-versions 0.1.0 0.01.0 | ||
0.1.0 = 0.01.0 | ||
### opam admin compare-versions 0.2.2 0.2.0 | ||
0.2.2 > 0.2.0 | ||
### opam admin compare-versions 0.0.9 --lt 0.0.10 | ||
### opam admin compare-versions 1.2.3 --lt 1.2.3~preview | ||
# Return code 1 # | ||
### opam admin compare-versions 0.1.0 --eq 0.01.0 | ||
### opam admin compare-versions 0.0.9 --eq 0.0.10 | ||
# Return code 1 # | ||
### opam admin compare-versions 0.1.0 --le 0.1.0 | ||
### opam admin compare-versions 0.0.9 --le 0.0.10 | ||
### opam admin compare-versions 0.2.2 --le 0.2.1 | ||
# Return code 1 # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters