Commit 13a1ed1
committed
Fix
The followings is the previous behavior:
- `FailureMessage().toExpectationMessage()` will be `ExpectationMessage.fail("")`
- `ExpectationMessage.fail("").update(failureMessage: aMessage)` will set `aMessage.stringValue = ""`
- Thus the error message of `expect(1).to(MatcherFunc { _, _ in false }.predicate)` will be emptyExpectationMessage.update(failureMessage:) not to update a FailureMessage instance with empty string1 parent d12f99e commit 13a1ed1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
0 commit comments