File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version=2.0.1-SNAPSHOT
22
33# Dependency versions
44dokka_version = 0.9.13
5- kotlintest_version = 2.0.0
5+ kotlintest_version = 2.0.1
66kotlin_version = 1.1.1
77ktlint_version = 0.6.1
88xenocom_version = 0.0.4
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ import com.xenomachina.argparser.UnexpectedPositionalArgumentException
3232import com.xenomachina.argparser.UnrecognizedOptionException
3333import com.xenomachina.argparser.default
3434import com.xenomachina.common.orElse
35- import io.kotlintest.matchers.Matcher
36- import io.kotlintest.matchers.Result
35+ import io.kotlintest.matchers.beOfType
3736import io.kotlintest.matchers.should
3837import io.kotlintest.matchers.shouldBe
3938import io.kotlintest.matchers.shouldThrow
@@ -55,14 +54,6 @@ open class Shape
5554class Rectangle (val s : String ) : Shape()
5655class 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:
You can’t perform that action at this time.
0 commit comments