sheredom / utest.h

🧪 single header unit testing framework for C and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any use for a macro comparing raw bytes?

iboukhss opened this issue · comments

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?

Just never needed it myself! Could be added I suppose.