aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/json.cc')
-rw-r--r--libtests/json.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/libtests/json.cc b/libtests/json.cc
index 43f2b3c6..3844222f 100644
--- a/libtests/json.cc
+++ b/libtests/json.cc
@@ -1,13 +1,9 @@
+#include <qpdf/assert_test.h>
+
#include <qpdf/JSON.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <iostream>
-#ifdef NDEBUG
-// We need assert even in a release build for test code.
-# undef NDEBUG
-#endif
-#include <cassert>
-
static void
check(JSON const& j, std::string const& exp)
{