+ improved test case coverage
This commit is contained in:
parent
a7a946bd18
commit
75ba6ae4ff
1 changed files with 3 additions and 0 deletions
|
@ -1204,6 +1204,9 @@ TEST_CASE("number (float)")
|
||||||
json j2 = 2.7182818;
|
json j2 = 2.7182818;
|
||||||
double v2 = j2;
|
double v2 = j2;
|
||||||
CHECK(j2.get<double>() == v2);
|
CHECK(j2.get<double>() == v2);
|
||||||
|
|
||||||
|
int64_t v3 = j2;
|
||||||
|
CHECK(j2.get<int64_t>() == v3);
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("Operators")
|
SECTION("Operators")
|
||||||
|
|
Loading…
Reference in a new issue