summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-10-09 15:18:40 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-10-09 15:18:40 -0500
commitdbd02c8437ae634f4ece3c2979afeb19a3979f61 (patch)
tree1217356bddc2717cfa320bc3137ca0e63868050a /go.mod
parenteeff1f3c61fad805bb5ce0170e98378c3b706c18 (diff)
Add tests for properties of many outputs
- Test that every number returned by factors.Factors is actually a factor of its argument. - Test that every number returned by factors.TotativeDigits is actually a totative of its argument, and that len(factors.TotativeDigits(r)) == factors.Totient(r). - Test the properties of factors.Split (regular * totative == digit, totative is a totative of radix). Some of these tests don't test every number in the range, instead picking randomly, which is done in order to avoid tests taking too long to execute. Some testing is better than no testing!
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions