Skip to content

Commit 2b31ad3

Browse files
authored
Merge pull request #479 from smh/fix-multi-string-tobe
2 parents a88b7a5 + b7f869a commit 2b31ad3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jvm/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212

1313
## [Unreleased]
14+
### Fixed
15+
- Multiline `toBe` assertions (introduced in `2.1.0` for Java pre-15) were not throwing exceptions on snapshot mismatch, now fixed. ([#479](https://github.com/diffplug/selfie/pull/479))
1416

1517
## [2.4.0] - 2024-10-01
1618
### Added

jvm/selfie-lib/src/jvmMain/kotlin/com/diffplug/selfie/SelfieImplementations.jvm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ actual interface StringFacet : FluentFacet {
4242
buffer.append("\n")
4343
buffer.append(line)
4444
}
45-
return buffer.toString()
45+
return toBe(buffer.toString())
4646
}
4747
}

0 commit comments

Comments
 (0)