Skip to content

Commit

Permalink
Ensuring asserts work in the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Aug 6, 2024
1 parent 949ca30 commit 5212465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/throwing_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#include "adobe/contract_checks.hpp"
#include <cassert>
#include <cstdint>
#include <string_view>

#undef NDEBUG
#include <cassert>

[[noreturn]] void ::adobe::contract_violated(const char *const condition,
::adobe::contract_violation::kind_t kind,
const char *file,
Expand Down

0 comments on commit 5212465

Please sign in to comment.