From e5d6415c28f8d1bc104ba96c80b00ce119401bfb Mon Sep 17 00:00:00 2001 From: Vincent DURMONT Date: Wed, 19 Aug 2015 08:20:37 -0700 Subject: [PATCH] Add a few tests for the case --- .../com/vdurmont/semver4j/SemverTest.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test/java/com/vdurmont/semver4j/SemverTest.java b/src/test/java/com/vdurmont/semver4j/SemverTest.java index b4cd40a..f79c62e 100644 --- a/src/test/java/com/vdurmont/semver4j/SemverTest.java +++ b/src/test/java/com/vdurmont/semver4j/SemverTest.java @@ -157,32 +157,32 @@ private static void assertIsSemver(Semver semver, String value, Integer major, I } @Test public void withIncMajor_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); - semver.withIncMajor(2).isEqualTo("3.2.3-beta.4+sha123456789"); + Semver semver = new Semver("1.2.3-Beta.4+SHA123456789"); + semver.withIncMajor(2).isEqualTo("3.2.3-Beta.4+SHA123456789"); } @Test public void withIncMinor_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); - semver.withIncMinor(2).isEqualTo("1.4.3-beta.4+sha123456789"); + Semver semver = new Semver("1.2.3-Beta.4+SHA123456789"); + semver.withIncMinor(2).isEqualTo("1.4.3-Beta.4+SHA123456789"); } @Test public void withIncPatch_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); - semver.withIncPatch(2).isEqualTo("1.2.5-beta.4+sha123456789"); + Semver semver = new Semver("1.2.3-Beta.4+SHA123456789"); + semver.withIncPatch(2).isEqualTo("1.2.5-Beta.4+SHA123456789"); } @Test public void withClearedSuffix_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); - semver.withClearedSuffix().isEqualTo("1.2.3+sha123456789"); + Semver semver = new Semver("1.2.3-Beta.4+SHA123456789"); + semver.withClearedSuffix().isEqualTo("1.2.3+SHA123456789"); } @Test public void withClearedBuild_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); - semver.withClearedBuild().isEqualTo("1.2.3-beta.4"); + Semver semver = new Semver("1.2.3-Beta.4+sha123456789"); + semver.withClearedBuild().isEqualTo("1.2.3-Beta.4"); } @Test public void withClearedSuffixAndBuild_test() { - Semver semver = new Semver("1.2.3-beta.4+sha123456789"); + Semver semver = new Semver("1.2.3-Beta.4+SHA123456789"); semver.withClearedSuffixAndBuild().isEqualTo("1.2.3"); }