Skip to content

Commit

Permalink
Add test for p case insensibility with P_IS_PATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Oct 14, 2022
1 parent fd79aeb commit f63a375
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 @@ -258,6 +258,9 @@ int main() {
errors += version_test_symmetrical_flags("1.0p1", "1.0p1", VERSIONFLAG_P_IS_PATCH, 0, 1);
errors += version_test_symmetrical_flags("1.0p1", "1.0p1", 0, VERSIONFLAG_P_IS_PATCH, -1);

errors += version_test_symmetrical_flags("1.0p1", "1.0P1", 0, 0, 0);
errors += version_test_symmetrical_flags("1.0p1", "1.0P1", VERSIONFLAG_P_IS_PATCH, VERSIONFLAG_P_IS_PATCH, 0);

errors += version_test_symmetrical_flags("1.0", "1.0p1", 0, 0, 1);
errors += version_test_symmetrical_flags("1.0", "1.0p1", VERSIONFLAG_P_IS_PATCH, 0, 1);
errors += version_test_symmetrical_flags("1.0", "1.0p1", 0, VERSIONFLAG_P_IS_PATCH, -1);
Expand Down

0 comments on commit f63a375

Please sign in to comment.