+ set number type to int64_t
+ replaced several functions by template magic
This commit is contained in:
parent
a144800774
commit
54fc97d434
5 changed files with 119 additions and 258 deletions
|
|
@ -1094,6 +1094,14 @@ TEST_CASE("number (int)")
|
|||
json j2 = 42;
|
||||
int v2 = j2;
|
||||
CHECK(j2.get<int>() == v2);
|
||||
|
||||
json j3 = 2147483647;
|
||||
int v3 = j3;
|
||||
CHECK(j3.get<int>() == v3);
|
||||
|
||||
json j4 = 9223372036854775807;
|
||||
int64_t v4 = j4;
|
||||
CHECK(j4.get<int64_t>() == v4);
|
||||
}
|
||||
|
||||
SECTION("Operators")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue