-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
187 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# sver/tests | ||
Unit tests for sver | ||
|
||
## Coverage | ||
Test data is in [tests.yaml](tests.yaml), references to keys below are in this file. | ||
|
||
### `bump (major|minor|patch)` | ||
See top level `.bump`. | ||
|
||
### Comparisons (`equals`, `greater_than` & `less_than`) | ||
Indirectly tested during `bump` and `sort` tests. | ||
|
||
### `complete` | ||
No test coverage. | ||
|
||
### `constraint` | ||
TODO | ||
|
||
### `get (major|minor|patch|prerelease|build)` | ||
See top level `.get`. | ||
|
||
### `json` | ||
Tested against valid and invalid example versions, see top level `.examples`. | ||
|
||
### `sort` | ||
Tested against valid versions, see top level `.examples.sorted`. Pre-sorted | ||
input is unsorted both with a fixed reverse sort, as well as 5 random "sorts", | ||
then sorted by sver, and the output is then compared to the pre-sorted input. | ||
|
||
### `filter` | ||
|
||
### `validate` | ||
Tested against valid and invalid example versions, see top level `.examples`. | ||
|
||
### `yaml` | ||
Tested against valid and invalid example versions, see top level `.examples`. | ||
|
||
|
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