We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f9c5f commit 1792778Copy full SHA for 1792778
test/unittest/bigintegertest.cpp
@@ -120,6 +120,11 @@ TEST(BigInteger, LeftShift) {
120
EXPECT_TRUE(BIGINTEGER_LITERAL("4537899042132549697536") == a);
121
a <<= 99;
122
EXPECT_TRUE(BIGINTEGER_LITERAL("2876235222267216943024851750785644982682875244576768") == a);
123
+
124
+ a = 1;
125
+ a <<= 64; // a.count_ != 1
126
+ a <<= 256; // interShift == 0
127
+ EXPECT_TRUE(BIGINTEGER_LITERAL("2135987035920910082395021706169552114602704522356652769947041607822219725780640550022962086936576") == a);
128
}
129
130
TEST(BigInteger, Compare) {
0 commit comments