-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from pine613/fix/semver
Fix not install bugs
- Loading branch information
Showing
5 changed files
with
31 additions
and
364 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,20 @@ | ||
use strict; | ||
use warnings; | ||
use utf8; | ||
|
||
use t::Util; | ||
use Crenv::Utils; | ||
|
||
sub cmp_version { Crenv::Utils::cmp_version(@_) } | ||
|
||
subtest basic => sub { | ||
cmp_ok cmp_version('0.8.0', '0.7.0'), '>', 0; | ||
cmp_ok cmp_version('0.10.0', '0.7.0'), '>', 0; | ||
cmp_ok cmp_version('0.12.0', '0.10.0'), '>', 0; | ||
|
||
cmp_ok cmp_version('0.7.1', '0.7.0'), '>', 0; | ||
cmp_ok cmp_version('0.7.0', '0.7.1'), '<', 0; | ||
cmp_ok cmp_version('0.7.0', '0.7.0'), '==', 0; | ||
}; | ||
|
||
done_testing; |
Oops, something went wrong.