21 #define BIGINTEGER_LITERAL(s) BigInteger(s, sizeof(s) - 1) 23 static const BigInteger kZero(0);
24 static const BigInteger kOne(1);
28 TEST(BigInteger, Constructor) {
34 const BigInteger
a(123);
44 TEST(BigInteger, AddUint64) {
56 BigInteger b = kUint64Max;
63 TEST(BigInteger, MultiplyUint64) {
85 TEST(BigInteger, MultiplyUint32) {
108 BigInteger
a = kZero;
134 EXPECT_EQ(0, kUint64Max.Compare(kUint64Max));
136 EXPECT_EQ(-1, kUint64Max.Compare(kTwo64));
137 EXPECT_EQ(1, kTwo64.Compare(kUint64Max));
#define EXPECT_TRUE(condition)
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
unsigned __int64 uint64_t
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define EXPECT_EQ(val1, val2)
#define BIGINTEGER_LITERAL(s)
TEST(BigInteger, Constructor)