utest.h icon indicating copy to clipboard operation
utest.h copied to clipboard

Documentation for string comparison macros outdated

Open Pecora0 opened this issue 7 months ago • 0 comments

Have a look at the documentation of e.g. ASSERT_STRNEQ in the README https://github.com/sheredom/utest.h/blob/master/README.md#assert_strneqx-y It tells us that that the macro takes two arguments but in utest.h the macro is defined as having three arguments. (It makes us specify the length separately which is a good decision in my opinion). The following macros have the same issue:

  • EXPECT_STRNEQ
  • EXPECT_STRNEQ_MSG
  • ASSERT_STRNEQ
  • ASSERT_STRNEQ_MSG
  • EXPECT_STRNNE
  • EXPECT_STRNNE_MSG
  • ASSERT_STRNNE
  • ASSERT_STRNNE_MSG

Pecora0 avatar Jul 22 '25 20:07 Pecora0