You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTest {
@Testpublicvoidexample() {
expectSelfie("underTest").toBe("""This is a string constant// selfieonceThe comment above is not really a comment.We effectively have a "forbidden value" that can't be inside inline snapshots. """)
}
}
The text was updated successfully, but these errors were encountered:
nedtwigg
changed the title
Handle comments within String constants
Ignore comments within String constants
Jan 5, 2024
This code is too simple.
selfie/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts/CommentTracker.kt
Lines 51 to 54 in 6c3d0ee
selfie/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts/SourceFile.kt
Lines 83 to 87 in 6c3d0ee
For example:
The text was updated successfully, but these errors were encountered: