[JSON] doctest: need another section ?
This commit is contained in:
parent
6d9b2040ab
commit
578217eaa3
1 changed files with 14 additions and 14 deletions
|
@ -105,14 +105,14 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person_without_private_data_2, age, name, met
|
||||||
|
|
||||||
class person_with_private_alphabet
|
class person_with_private_alphabet
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool operator==(const person_with_private_alphabet& other)
|
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) ==
|
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);
|
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 a;
|
||||||
int b;
|
int b;
|
||||||
int c;
|
int c;
|
||||||
|
@ -144,7 +144,7 @@ private:
|
||||||
|
|
||||||
class person_with_public_alphabet
|
class person_with_public_alphabet
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool operator==(const person_with_public_alphabet& other)
|
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) ==
|
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_private_alphabet,
|
||||||
persons::person_with_public_alphabet)
|
persons::person_with_public_alphabet)
|
||||||
{
|
{
|
||||||
SECTION("person")
|
SECTION("alphabet")
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
T obj1;
|
T obj1;
|
||||||
|
|
Loading…
Reference in a new issue