File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
jvm/selfie-lib/src/commonTest/kotlin/com/diffplug/selfie Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com.diffplug.selfie
1717
18- import io.kotest.assertions.throwables.shouldThrow
1918import io.kotest.matchers.shouldBe
2019import kotlin.test.Test
2120
@@ -24,10 +23,8 @@ class SelfieImplementationsTest {
2423 fun issue_529 () {
2524 val empty = Snapshot .of(" " )
2625 val emptyPlusFacet = Snapshot .of(" " ).plusFacet(" new-facet" , " new-facet-value" )
27- val exception =
28- shouldThrow<StringIndexOutOfBoundsException > {
29- serializeOnlyFacets(empty, listOf (" new-facet" ))
30- }
31- exception.message shouldBe " String index out of range: -1"
26+ val mismathedKeys = listOf (" new-facet" )
27+ serializeOnlyFacets(empty, mismathedKeys) shouldBe " "
28+ serializeOnlyFacets(emptyPlusFacet, mismathedKeys) shouldBe " ╔═ [new-facet] ═╗\n new-facet-value"
3229 }
3330}
You can’t perform that action at this time.
0 commit comments