Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
Improve SemVer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NthPortal committed Apr 20, 2017
1 parent 93da70f commit 5c6411c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/scala/com/nthportal/versions/semver/SemVerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class SemVerTest extends SimpleSpec {

noException should be thrownBy {parseSemVerVersion("1.0.0-SNAP.SHOT")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAP-SHOT")}
noException should be thrownBy {parseSemVerVersion("1.0.0--SNAPSHOT")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAP--SHOT")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT-")}

a [VersionFormatException] should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+build..12654")}
a [VersionFormatException] should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+.build.12654")}
Expand All @@ -40,6 +43,9 @@ class SemVerTest extends SimpleSpec {

noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+build.12654")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+build-12654")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+-build.12654")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+build--12654")}
noException should be thrownBy {parseSemVerVersion("1.0.0-SNAPSHOT+build.12654-")}
}

it should "bump versions correctly" in {
Expand Down

0 comments on commit 5c6411c

Please sign in to comment.