Skip to content

Commit

Permalink
[fix, test] fix bad "test_arithmetic_operation.cpp"
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamPast committed Dec 21, 2024
1 parent 2c2a4ae commit 85b91a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cxx20/test_arithmetic_operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ void testRoot() {
for(int t = TEST_SMALL; t--;) {
BigInt x = BigInt::fromRandom("0xFFF");
BigInt e = BigInt::fromRandom("0x10");
if(x == 0) continue;
auto obj = x.rootrem(e);
BigInt pow = obj.first.pow(e);
T_assert(pow <= x && x < (obj.first + 1).pow(e));
Expand Down

0 comments on commit 85b91a0

Please sign in to comment.