File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
qs-kotlin/src/test/kotlin/io/github/techouse/qskotlin/unit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import io.kotest.assertions.throwables.shouldNotThrow
15
15
import io.kotest.assertions.throwables.shouldThrow
16
16
import io.kotest.core.spec.style.DescribeSpec
17
17
import io.kotest.matchers.shouldBe
18
+ import io.kotest.matchers.types.shouldBeSameInstanceAs
18
19
import java.nio.charset.Charset
19
20
import java.nio.charset.StandardCharsets
20
21
import kotlin.time.Duration.Companion.seconds
@@ -661,7 +662,7 @@ class DecodeSpec :
661
662
(parsed[" foo" ] as Map <* , * >).containsKey(" baz" ) shouldBe true
662
663
(parsed[" foo" ] as Map <* , * >)[" bar" ] shouldBe " baz"
663
664
val baz = (parsed[" foo" ] as Map <* , * >)[" baz" ]
664
- ( baz == = a) shouldBe true // identity check avoids deep recursive Eq on cycles
665
+ baz shouldBeSameInstanceAs a // identity check avoids deep recursive Eq on cycles
665
666
}
666
667
667
668
it(" does not crash or time out when parsing deep maps" ).config(timeout = 5 .seconds) {
You can’t perform that action at this time.
0 commit comments