Line data Source code
1 : 2 : /* 3 : * Driver for showing how to use the core basic and elementary 4 : * functionalities of the Number Theory module 5 : * 6 : */ 7 : #include <gtest/gtest.h> 8 : #include <iostream> 9 : #include <openGPMP/nt/factorization.hpp> 10 : #include <openGPMP/nt/prime_test.hpp> 11 : 12 : namespace { 13 : // declare primality class object 14 : gpmp::PrimalityTest __TEST_PRIMES__; 15 : gpmp::Factorization __TEST_FACTORS__; 16 : 17 : // Test case for the pollard_rho method 18 4 : TEST(FactorizationTest, PollardRhoTest) { 19 : gpmp::Factorization factorization; 20 : // Test with a prime number 21 1 : uint64_t prime = 997; 22 1 : } 23 : 24 : } // namespace