Skip to content

Commit

Permalink
Update test trace
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Barbin <[email protected]>
  • Loading branch information
mbarbin committed Jul 30, 2024
1 parent 2269e35 commit 64eb403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/client/opamAdminCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ let compare_package_versions_command cli =
let cmd global_options v1 v2 () =
OpamArg.apply_global_options cli global_options;
let result = OpamPackage.Version.compare v1 v2 in
OpamConsole.formatted_msg "%d (%s %s %s)\n"
result
OpamConsole.formatted_msg "%s %s %s\n"
(OpamPackage.Version.to_string v1)
(if result < 0 then "<" else if result = 0 then "=" else ">")
(OpamPackage.Version.to_string v2);
Expand Down
6 changes: 3 additions & 3 deletions tests/reftests/compare-package-versions.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
N0REP0
### opam admin compare-package-versions 0.0.9 0.0.10
-1 (0.0.9 < 0.0.10)
0.0.9 < 0.0.10
### opam admin compare-package-versions 1.2.3 1.2.3~preview
1 (1.2.3 > 1.2.3~preview)
1.2.3 > 1.2.3~preview
### opam admin compare-package-versions 0.1.0 0.01.0
0 (0.1.0 = 0.01.0)
0.1.0 = 0.01.0

0 comments on commit 64eb403

Please sign in to comment.