mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 22:46:39 +08:00
Update math/modular_exponentiation.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a9adb142a1
commit
053aea0b9a
@@ -63,7 +63,7 @@ namespace math {
|
|||||||
*/
|
*/
|
||||||
static void test()
|
static void test()
|
||||||
{
|
{
|
||||||
int test_case_1 = math::power(2,5,13);
|
uint32_t test_case_1 = math::power(2,5,13);
|
||||||
assert(test_case_1==6);
|
assert(test_case_1==6);
|
||||||
std::cout<<"Test 1 Passed!"<<std::endl;
|
std::cout<<"Test 1 Passed!"<<std::endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user