Module libbgs::numbers::tests

source ·
Expand description

Utility methods for use in other tests. These methods should probably not be used outside of this crate.

Functions

  • True if x is not of order prime power dividing d, but is a prime power of d. Much cheaper than test_is_generator_small, but may return a false positive.
  • True if x is of order d, False otherwise. Expensive and intended for use only with small values of d.