Go to the source code of this file.
|
| TEST (BigInteger, Constructor) |
|
| TEST (BigInteger, AddUint64) |
|
| TEST (BigInteger, MultiplyUint64) |
|
| TEST (BigInteger, MultiplyUint32) |
|
| TEST (BigInteger, LeftShift) |
|
| TEST (BigInteger, Compare) |
|
◆ BIGINTEGER_LITERAL
#define BIGINTEGER_LITERAL |
( |
| s | ) |
|
◆ TEST() [1/6]
TEST |
( |
BigInteger | , |
|
|
AddUint64 | ) |
Definition at line 44 of file bigintegertest.cpp.
44 {
48
51
54
56 BigInteger b = kUint64Max;
57 b += 1u;
61}
#define BIGINTEGER_LITERAL(s)
#define EXPECT_TRUE(condition)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
◆ TEST() [2/6]
TEST |
( |
BigInteger | , |
|
|
Compare | ) |
◆ TEST() [3/6]
TEST |
( |
BigInteger | , |
|
|
Constructor | ) |
◆ TEST() [4/6]
TEST |
( |
BigInteger | , |
|
|
LeftShift | ) |
◆ TEST() [5/6]
TEST |
( |
BigInteger | , |
|
|
MultiplyUint32 | ) |
Definition at line 85 of file bigintegertest.cpp.
85 {
91
92 BigInteger b = kOne;
97
98 BigInteger c(123);
101 c *= 0xFFFFFFFFu;
103 c *= 0xFFFFFFFFu;
105}
◆ TEST() [6/6]
TEST |
( |
BigInteger | , |
|
|
MultiplyUint64 | ) |
Definition at line 63 of file bigintegertest.cpp.
63 {
69
70 BigInteger b = kOne;
75
76 BigInteger c(123);
83}
unsigned __int64 uint64_t