The tests are burring some of actual test inside an ordinary assert macro. The tests shouldn’t silently get eliminated when the compile options change.
Things that we don’t want get getting removed when compiled with NDEBUG should have a library specific assert function or the like.