Skip to content

Commit

Permalink
Added assertion failure messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Jul 26, 2019
1 parent c32a7eb commit d17afba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/kotlin/net/thauvin/erik/gradle/semver/UtilsSpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,16 @@ object UtilsSpec : Spek({
}

Then("should throw exceptions") {
assertFailsWith<GradleException> {
assertFailsWith<GradleException>("2.1.1a") {
Utils.parseSemVer("2.1.1a", version)
}
assertFailsWith<GradleException> {
assertFailsWith<GradleException>("2a.1.1") {
Utils.parseSemVer("2a.1.1", version)
}
assertFailsWith<GradleException> {
assertFailsWith<GradleException>("2.1a.1") {
Utils.parseSemVer("2.1a.1", version)
}
assertFailsWith<GradleException> {
assertFailsWith<GradleException>("2.1") {
Utils.parseSemVer("2.1", version)
}
}
Expand Down

0 comments on commit d17afba

Please sign in to comment.