19 #include "gtest/gtest.h" 22 namespace strings_internal {
60 const std::string seed =
"1234567890123456789012345678901234567890";
62 for (
int i = 1;
i <= 84 * 32; ++
i) {
75 "933262154439441526816992388562667004907159682643816214685929638952175999" 76 "932299156089414639761565182862536979208272237582511852109168640000000000" 79 for (uint32_t
i = 1;
i <= 100; ++
i) {
90 "7886578673647905035523632139321850622951359776871732632947425332443594" 91 "4996340334292030428401198462390417721213891963883025764279024263710506" 92 "1926624952829931113462857270763317237396988943922445621451664240254033" 93 "2918641312274282948532775242424075739032403212574055795686602260319041" 94 "7032406235170085879617892222278962370389737472000000000000000000000000" 95 "0000000000000000000000000");
98 for (uint32_t
i = 1;
i < 200;
i += 2) {
103 EXPECT_EQ(evens, factorial_200);
107 for (
int a = 0 ;
a < 700;
a += 25) {
110 for (
int b = 0;
b < (700 -
a);
b += 25) {
115 EXPECT_EQ(b_value, expected_product);
126 BigUnsigned<4> all_bits_on(
"340282366920938463463374607431768211455");
142 EXPECT_EQ(value_1, value_2);
150 for (
int i = 0;
i < 1160; ++
i) {
155 for (
int j = 0; j <
i; j++) {
158 EXPECT_EQ(value_1, value_2);
165 for (
int i = 0;
i < 1160; ++
i) {
170 EXPECT_EQ(value_1, value_2);
178 for (
int i = 0;
i < 800; ++
i) {
183 for (
int j = 0; j <
i; j++) {
186 EXPECT_EQ(value_1, value_2);
191 for (
int i = 0;
i < 200; ++
i) {
196 EXPECT_EQ(value_1, value_2);
void ShiftLeft(int count)
void MultiplyByTenToTheNth(int n)
TEST(BigUnsigned, ShiftLeft)
static BigUnsigned FiveToTheNth(int n)
void MultiplyBy(uint32_t v)
void MultiplyByFiveToTheNth(int n)