From e83ddb185d8ce102f9981f6d72e0d3e91ceb2a1b Mon Sep 17 00:00:00 2001
From: pf <peter.f.j.featherstone@bath.edu>
Date: Sun, 19 Jul 2020 21:25:27 +0100
Subject: [PATCH] [JSON] use CHECK from doctest

---
 test/src/unit-udt_macro.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/src/unit-udt_macro.cpp b/test/src/unit-udt_macro.cpp
index d89057a6..91e941dd 100644
--- a/test/src/unit-udt_macro.cpp
+++ b/test/src/unit-udt_macro.cpp
@@ -222,7 +222,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j = obj1; //via json object
             T obj2;
             j.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
 
         {
@@ -232,7 +232,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j2 = nlohmann::json::parse(s);
             T obj2;
             j2.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
 
         {
@@ -242,7 +242,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j2 = nlohmann::json::from_msgpack(buf);
             T obj2;
             j2.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
 
         {
@@ -252,7 +252,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j2 = nlohmann::json::from_bson(buf);
             T obj2;
             j2.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
 
         {
@@ -262,7 +262,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j2 = nlohmann::json::from_cbor(buf);
             T obj2;
             j2.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
 
         {
@@ -272,7 +272,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
             nlohmann::json j2 = nlohmann::json::from_ubjson(buf);
             T obj2;
             j2.get_to(obj2);
-            assert(obj1 == obj2);
+            CHECK(obj1 == obj2);
         }
     }
 }