Commit 73d4948
authored
We noticed that in some conditions, boolean arguments to `#expect()`
would compile to use the _optional_ overload of
`__checkBinaryOperation()`, which would result in a pass when a failure
should have occurred because the boolean value never evaluated to `nil`.
This PR should resolve that issue.
Resolves rdar://138964155.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
1 parent 143406a commit 73d4948
File tree
2 files changed
+18
-1
lines changed- Sources/Testing/Expectations
- Tests/TestingTests
2 files changed
+18
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1555 | 1572 | | |
1556 | 1573 | | |
1557 | 1574 | | |
| |||
0 commit comments