forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd78d452
committed
Improve Assert output
If an assertion expression contained a macro, the failed assertionmessage would print the expanded macro, which is usually unhelpful andconfusing. Restructure the Assert macros to not expand any macroswhen constructing the failure message.This also fixes that the existing output for Assert et al. showsthe *inverted* condition, which is also confusing and not howassertions usually work.Discussion:https://www.postgresql.org/message-id/flat/6c68efe3-117a-dcc1-73d4-18ba1ec532e2%402ndquadrant.com1 parentf7db0ac commitd78d452
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
758 |
| - | |
| 758 | + | |
759 | 759 |
| |
760 | 760 |
| |
761 | 761 |
| |
| |||
768 | 768 |
| |
769 | 769 |
| |
770 | 770 |
| |
771 |
| - | |
| 771 | + | |
772 | 772 |
| |
773 | 773 |
| |
774 | 774 |
| |
775 |
| - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
776 | 780 |
| |
777 | 781 |
| |
778 |
| - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
779 | 785 |
| |
780 | 786 |
| |
781 |
| - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
782 | 792 |
| |
783 | 793 |
| |
784 |
| - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
785 | 799 |
| |
786 | 800 |
| |
787 | 801 |
| |
|
0 commit comments
Comments
(0)