Added assertion failure messages.
This commit is contained in:
parent
c32a7ebdec
commit
d17afba52e
1 changed files with 4 additions and 4 deletions
|
@ -171,16 +171,16 @@ object UtilsSpec : Spek({
|
||||||
}
|
}
|
||||||
|
|
||||||
Then("should throw exceptions") {
|
Then("should throw exceptions") {
|
||||||
assertFailsWith<GradleException> {
|
assertFailsWith<GradleException>("2.1.1a") {
|
||||||
Utils.parseSemVer("2.1.1a", version)
|
Utils.parseSemVer("2.1.1a", version)
|
||||||
}
|
}
|
||||||
assertFailsWith<GradleException> {
|
assertFailsWith<GradleException>("2a.1.1") {
|
||||||
Utils.parseSemVer("2a.1.1", version)
|
Utils.parseSemVer("2a.1.1", version)
|
||||||
}
|
}
|
||||||
assertFailsWith<GradleException> {
|
assertFailsWith<GradleException>("2.1a.1") {
|
||||||
Utils.parseSemVer("2.1a.1", version)
|
Utils.parseSemVer("2.1a.1", version)
|
||||||
}
|
}
|
||||||
assertFailsWith<GradleException> {
|
assertFailsWith<GradleException>("2.1") {
|
||||||
Utils.parseSemVer("2.1", version)
|
Utils.parseSemVer("2.1", version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue