Closed XUJINKAI closed 2 years ago
I think the fails are because you should useUTEST_NULL
instead of NULL
.
Gurgh - Windows is complaining with:
warning C4130: '==' : logical operation on address of string constant
I think if you added that warning to UTEST_SURPRESS_WARNING_BEGIN
here https://github.com/sheredom/utest.h/blob/master/utest.h#L506 that should be fixed.
Could you also add two tests, one for x being null, the other y being null?
Oh actually, can you add tests, since they'd need to fail. Lemme think on that bit!
Closing in favour of #110
NULL pointer in strcmp causes Segmentation fault