🔨 fixed a warning

This commit is contained in:
Niels Lohmann 2017-06-20 22:58:02 +02:00
parent 84f2e64a7c
commit e7695306f1
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -317,7 +317,7 @@ TEST_CASE("iterators 2")
auto it = j_array.begin(); auto it = j_array.begin();
it += 3; it += 3;
CHECK((j_array.begin() + 3) == it); CHECK((j_array.begin() + 3) == it);
CHECK(json::iterator(3 + j_array.begin()) == it); CHECK((3 + j_array.begin()) == it);
CHECK((it - 3) == j_array.begin()); CHECK((it - 3) == j_array.begin());
CHECK((it - j_array.begin()) == 3); CHECK((it - j_array.begin()) == 3);
CHECK(*it == json(4)); CHECK(*it == json(4));
@ -328,7 +328,7 @@ TEST_CASE("iterators 2")
auto it = j_array.cbegin(); auto it = j_array.cbegin();
it += 3; it += 3;
CHECK((j_array.cbegin() + 3) == it); CHECK((j_array.cbegin() + 3) == it);
CHECK(json::const_iterator(3 + j_array.cbegin()) == it); CHECK((3 + j_array.cbegin()) == it);
CHECK((it - 3) == j_array.cbegin()); CHECK((it - 3) == j_array.cbegin());
CHECK((it - j_array.cbegin()) == 3); CHECK((it - j_array.cbegin()) == 3);
CHECK(*it == json(4)); CHECK(*it == json(4));
@ -343,7 +343,7 @@ TEST_CASE("iterators 2")
auto it = j_null.begin(); auto it = j_null.begin();
it += 3; it += 3;
CHECK((j_null.begin() + 3) == it); CHECK((j_null.begin() + 3) == it);
CHECK(json::iterator(3 + j_null.begin()) == it); CHECK((3 + j_null.begin()) == it);
CHECK((it - 3) == j_null.begin()); CHECK((it - 3) == j_null.begin());
CHECK((it - j_null.begin()) == 3); CHECK((it - j_null.begin()) == 3);
CHECK(it != j_null.end()); CHECK(it != j_null.end());
@ -354,7 +354,7 @@ TEST_CASE("iterators 2")
auto it = j_null.cbegin(); auto it = j_null.cbegin();
it += 3; it += 3;
CHECK((j_null.cbegin() + 3) == it); CHECK((j_null.cbegin() + 3) == it);
CHECK(json::const_iterator(3 + j_null.cbegin()) == it); CHECK((3 + j_null.cbegin()) == it);
CHECK((it - 3) == j_null.cbegin()); CHECK((it - 3) == j_null.cbegin());
CHECK((it - j_null.cbegin()) == 3); CHECK((it - j_null.cbegin()) == 3);
CHECK(it != j_null.cend()); CHECK(it != j_null.cend());
@ -369,7 +369,7 @@ TEST_CASE("iterators 2")
auto it = j_value.begin(); auto it = j_value.begin();
it += 3; it += 3;
CHECK((j_value.begin() + 3) == it); CHECK((j_value.begin() + 3) == it);
CHECK(json::iterator(3 + j_value.begin()) == it); CHECK((3 + j_value.begin()) == it);
CHECK((it - 3) == j_value.begin()); CHECK((it - 3) == j_value.begin());
CHECK((it - j_value.begin()) == 3); CHECK((it - j_value.begin()) == 3);
CHECK(it != j_value.end()); CHECK(it != j_value.end());
@ -380,7 +380,7 @@ TEST_CASE("iterators 2")
auto it = j_value.cbegin(); auto it = j_value.cbegin();
it += 3; it += 3;
CHECK((j_value.cbegin() + 3) == it); CHECK((j_value.cbegin() + 3) == it);
CHECK(json::const_iterator(3 + j_value.cbegin()) == it); CHECK((3 + j_value.cbegin()) == it);
CHECK((it - 3) == j_value.cbegin()); CHECK((it - 3) == j_value.cbegin());
CHECK((it - j_value.cbegin()) == 3); CHECK((it - j_value.cbegin()) == 3);
CHECK(it != j_value.cend()); CHECK(it != j_value.cend());