You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why is there not a macro that uses compares raw bytes with memcmp() in utest.h?
I feel like it could be useful when you need to compare anything else other than strings. Of course you always can wrap memcmp() around ASSERT_TRUE but then you don't get the nice output that tells you at which offset there is a difference in case of failure.
Perhaps there is another way to do it that I missed?
The text was updated successfully, but these errors were encountered:
I was wondering why is there not a macro that uses compares raw bytes with
memcmp()
in utest.h?I feel like it could be useful when you need to compare anything else other than strings. Of course you always can wrap
memcmp()
aroundASSERT_TRUE
but then you don't get the nice output that tells you at which offset there is a difference in case of failure.Perhaps there is another way to do it that I missed?
The text was updated successfully, but these errors were encountered: