Skip to content

Commit 83976d8

Browse files
committed
Upgrade kotlintest to 2.0.1
1 parent d45facd commit 83976d8

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version=2.0.1-SNAPSHOT
22

33
# Dependency versions
44
dokka_version = 0.9.13
5-
kotlintest_version = 2.0.0
5+
kotlintest_version = 2.0.1
66
kotlin_version = 1.1.1
77
ktlint_version = 0.6.1
88
xenocom_version = 0.0.4

src/test/kotlin/ArgParserTest.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ import com.xenomachina.argparser.UnexpectedPositionalArgumentException
3232
import com.xenomachina.argparser.UnrecognizedOptionException
3333
import com.xenomachina.argparser.default
3434
import com.xenomachina.common.orElse
35-
import io.kotlintest.matchers.Matcher
36-
import io.kotlintest.matchers.Result
35+
import io.kotlintest.matchers.beOfType
3736
import io.kotlintest.matchers.should
3837
import io.kotlintest.matchers.shouldBe
3938
import io.kotlintest.matchers.shouldThrow
@@ -55,14 +54,6 @@ open class Shape
5554
class Rectangle(val s: String) : Shape()
5655
class Circle : Shape()
5756

58-
// TODO: remove this once kotlintest releases fix
59-
inline fun <reified T : Any> beOfType() = object : Matcher<Any> {
60-
val exceptionClassName = T::class.qualifiedName
61-
62-
override fun test(value: Any) =
63-
Result(value.javaClass == T::class.java, "$value should be of type $exceptionClassName")
64-
}
65-
6657
/**
6758
* Helper function for getting the static (not runtime) type of an expression. This is useful for verifying that the
6859
* inferred type of an expression is what you think it should be. For example:

0 commit comments

Comments
 (0)