Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Bounds of 0 are wider than bounds of 0.0
  • Loading branch information
AMDmi3 committed Dec 26, 2019
1 parent 0c20830 commit 90d07e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/compare_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ int main() {

errors += version_test_symmetrical_flags("1.0", "1.1", VERSIONFLAG_UPPER_BOUND, VERSIONFLAG_LOWER_BOUND, -1);

errors += version_test_symmetrical_flags("0", "0.0", VERSIONFLAG_UPPER_BOUND, VERSIONFLAG_UPPER_BOUND, 1);
errors += version_test_symmetrical_flags("0", "0.0", VERSIONFLAG_LOWER_BOUND, VERSIONFLAG_LOWER_BOUND, -1);

fprintf(stderr, "\nTest group: uniform component splitting\n");
errors += version_test_symmetrical("1.0alpha1", "1.0alpha1", 0);
errors += version_test_symmetrical("1.0alpha1", "1.0.alpha1", 0);
Expand Down

0 comments on commit 90d07e5

Please sign in to comment.