apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
301 stars 54 forks source link

fix (tests): C API test assertions are run in Release build #765

Closed tjanc closed 4 years ago

tjanc commented 4 years ago

We are currently using C asserts as test assertions in our C API tests. That means our production builds don't include any assertions. A macro REQUIRE has been introduced, calling abort instead of assert; apart from printing some welcome annotations, like __FILE__, __LINE__ and the tested expression itself.