[JSON] doctest: need another section ?

This commit is contained in:
pf 2020-07-19 18:17:03 +01:00
parent 6d9b2040ab
commit 578217eaa3

View file

@ -105,14 +105,14 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person_without_private_data_2, age, name, met
class person_with_private_alphabet
{
public:
public:
bool operator==(const person_with_private_alphabet& other)
{
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) ==
std::tie(other.a, other.b, other.c, other.d, other.e, other.f, other.g, other.h, other.i, other.j, other.k, other.l, other.m, other.n, other.o, other.p, other.q, other.r, other.s, other.t, other.u, other.v, other.w, other.x, other.y, other.z);
}
private:
private:
int a;
int b;
int c;
@ -144,7 +144,7 @@ private:
class person_with_public_alphabet
{
public:
public:
bool operator==(const person_with_public_alphabet& other)
{
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) ==
@ -214,7 +214,7 @@ TEST_CASE_TEMPLATE("Serialization/deserialization of classes with 26 public/priv
persons::person_with_private_alphabet,
persons::person_with_public_alphabet)
{
SECTION("person")
SECTION("alphabet")
{
{
T obj1;