Skip to content

Commit e83ddb1

Browse files
committed
[JSON] use CHECK from doctest
1 parent 254f0e3 commit e83ddb1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/src/unit-udt_macro.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
222222
nlohmann::json j = obj1; //via json object
223223
T obj2;
224224
j.get_to(obj2);
225-
assert(obj1 == obj2);
225+
CHECK(obj1 == obj2);
226226
}
227227

228228
{
@@ -232,7 +232,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
232232
nlohmann::json j2 = nlohmann::json::parse(s);
233233
T obj2;
234234
j2.get_to(obj2);
235-
assert(obj1 == obj2);
235+
CHECK(obj1 == obj2);
236236
}
237237

238238
{
@@ -242,7 +242,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
242242
nlohmann::json j2 = nlohmann::json::from_msgpack(buf);
243243
T obj2;
244244
j2.get_to(obj2);
245-
assert(obj1 == obj2);
245+
CHECK(obj1 == obj2);
246246
}
247247

248248
{
@@ -252,7 +252,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
252252
nlohmann::json j2 = nlohmann::json::from_bson(buf);
253253
T obj2;
254254
j2.get_to(obj2);
255-
assert(obj1 == obj2);
255+
CHECK(obj1 == obj2);
256256
}
257257

258258
{
@@ -262,7 +262,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
262262
nlohmann::json j2 = nlohmann::json::from_cbor(buf);
263263
T obj2;
264264
j2.get_to(obj2);
265-
assert(obj1 == obj2);
265+
CHECK(obj1 == obj2);
266266
}
267267

268268
{
@@ -272,7 +272,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
272272
nlohmann::json j2 = nlohmann::json::from_ubjson(buf);
273273
T obj2;
274274
j2.get_to(obj2);
275-
assert(obj1 == obj2);
275+
CHECK(obj1 == obj2);
276276
}
277277
}
278278
}

0 commit comments

Comments
 (0)