We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0000bf0 commit 819fa1eCopy full SHA for 819fa1e
jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/VcrSelfie.kt
@@ -52,7 +52,7 @@ internal constructor(
52
val nextClose = key.indexOf(CLOSE)
53
check(nextClose != -1)
54
val num = key.substring(OPEN.length, nextClose).toInt()
55
- check(num == idx)
+ check(num == idx) { "expected $idx in $key" }
56
++idx
57
val keyAfterNum = key.substring(nextClose + 1)
58
state.frames.add(keyAfterNum to value)
@@ -70,6 +70,7 @@ internal constructor(
70
var idx = 1
71
for ((key, value) in state.frames) {
72
snapshot = snapshot.plusFacet("$OPEN$idx$CLOSE$key", value)
73
+ ++idx
74
}
75
disk.writeDisk(snapshot, sub, call)
76
0 commit comments