Skip to content

Conversation

@mizdebsk
Copy link
Member

Replace all uses of assert_that with assert_eq for consistency and clearer test failure messages. assert_eq is already used elsewhere and provides better diagnostics by showing expected vs. actual values.

using namespace java_symbols;

template <typename T1, typename T2>
static std::ostream &operator<<(std::ostream &os, const std::tuple<T1, T2> &t) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this project we use left-side reference and pointer syntax, i.e.:
type& func(type* var);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Replace all uses of assert_that with assert_eq for consistency and
clearer test failure messages.  assert_eq is already used elsewhere
and provides better diagnostics by showing expected vs. actual values.
@mkoncek mkoncek merged commit 93e62c9 into fedora-java:main Jul 23, 2025
1 check passed
@mizdebsk mizdebsk deleted the pr/30 branch July 23, 2025 09:12
@mkoncek
Copy link
Member

mkoncek commented Jul 23, 2025

For future, when C++23 is allowed, there is https://en.cppreference.com/w/cpp/io/print.html with default formatters for complex objects like tuples that can be used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants