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 15
15
*/
16
16
package com.diffplug.selfie
17
17
18
- import io.kotest.assertions.throwables.shouldThrow
19
18
import io.kotest.matchers.shouldBe
20
19
import kotlin.test.Test
21
20
@@ -24,10 +23,8 @@ class SelfieImplementationsTest {
24
23
fun issue_529 () {
25
24
val empty = Snapshot .of(" " )
26
25
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"
32
29
}
33
30
}
You can’t perform that action at this time.
0 commit comments